diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2017-04-17 15:21:55 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2017-04-17 15:21:55 +0000 |
commit | 9a22a287be11af048aa0140abad783a252678a85 (patch) | |
tree | 2a42c7d1f8517b6869012b0e1c2cbe6ef5c8c945 /test/CodeGenObjC | |
parent | eb26f1e4a82d9e76c643e9253115a364e508610b (diff) |
[ObjC] Mark loads from __NSArray0 and __NSDictionary0 as invariant.load.
Also, simplify code by calling MakeNaturalAlignAddrLValue.
This is a follow-up to r300396.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300454 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC')
-rw-r--r-- | test/CodeGenObjC/empty-collection-literals.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenObjC/empty-collection-literals.m b/test/CodeGenObjC/empty-collection-literals.m index 0f9715f521..4b1d7f6ebe 100644 --- a/test/CodeGenObjC/empty-collection-literals.m +++ b/test/CodeGenObjC/empty-collection-literals.m @@ -41,7 +41,7 @@ void test_empty_dictionary() { // CHECK-WITH-EMPTY-COLLECTIONS-LABEL: define void @test_empty_dictionary // CHECK-WITH-EMPTY-COLLECTIONS-NOT: ret void - // CHECK-WITH-EMPTY-COLLECTIONS: load {{.*}} @__NSDictionary0__ + // CHECK-WITH-EMPTY-COLLECTIONS: load {{.*}} @__NSDictionary0__{{.*}}!invariant.load // CHECK-WITH-EMPTY-COLLECTIONS-NOT: ret void // CHECK-WITH-EMPTY-COLLECTIONS: {{call.*objc_retain\(}} // CHECK-WITH-EMPTY-COLLECTIONS-NOT: ret void |