diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2019-04-10 06:20:23 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2019-04-10 06:20:23 +0000 |
commit | 60c3a3b6d0f18a0deb226c545251f83d167e087a (patch) | |
tree | e558ee2749dc136995b3ea1dfd36f3ef036d0d69 /clang/test/CodeGenObjC | |
parent | 9ca9d32b6be038debc6fda9c16a5f95b59e9b806 (diff) | |
download | bcm5719-llvm-60c3a3b6d0f18a0deb226c545251f83d167e087a.tar.gz bcm5719-llvm-60c3a3b6d0f18a0deb226c545251f83d167e087a.zip |
[CodeGen][ObjC] Emit the retainRV marker as a module flag instead of
named metadata.
This fixes a bug where ARC contract wasn't inserting the retainRV
marker when LTO was enabled, which caused objects returned from a
function to be auto-released.
rdar://problem/49464214
Differential Revision: https://reviews.llvm.org/D60302
llvm-svn: 358048
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r-- | clang/test/CodeGenObjC/arc-unsafeclaim.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/CodeGenObjC/arc-unsafeclaim.m b/clang/test/CodeGenObjC/arc-unsafeclaim.m index f5982ddc04d..a8011e02418 100644 --- a/clang/test/CodeGenObjC/arc-unsafeclaim.m +++ b/clang/test/CodeGenObjC/arc-unsafeclaim.m @@ -231,4 +231,5 @@ void test_cast_to_void() { // This is always at the end of the module. -// CHECK-OPTIMIZED: !clang.arc.retainAutoreleasedReturnValueMarker = !{!0} +// CHECK-OPTIMIZED: !llvm.module.flags = !{!0, +// CHECK-OPTIMIZED: !0 = !{i32 1, !"clang.arc.retainAutoreleasedReturnValueMarker", !"mov{{.*}}marker for objc_retainAutoreleaseReturnValue"} |