diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2019-06-14 22:06:28 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2019-06-14 22:06:28 +0000 |
commit | 6cb2d9dbd2d46ee1811f756d4b1f567b8ff36aa9 (patch) | |
tree | ad9a46f1a38ce64d675f990cccee3f3ffceb15ec /clang/test/CodeGenCXX/static-local-in-local-class.cpp | |
parent | 05e48cb9fabe58b2704fbca14530c844a9d2243d (diff) | |
download | bcm5719-llvm-6cb2d9dbd2d46ee1811f756d4b1f567b8ff36aa9.tar.gz bcm5719-llvm-6cb2d9dbd2d46ee1811f756d4b1f567b8ff36aa9.zip |
[CodeGen][ObjC] Annotate retain-agnostic ObjC globals with attribute
'objc_arc_inert'
The attribute enables the ARC optimizer to delete ObjC ARC runtime calls
on the annotated globals (see https://reviews.llvm.org/D62433). We
currently only annotate global variables for string literals and global
blocks with the attribute.
rdar://problem/49839633
Differential Revision: https://reviews.llvm.org/D62831
llvm-svn: 363467
Diffstat (limited to 'clang/test/CodeGenCXX/static-local-in-local-class.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/static-local-in-local-class.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/static-local-in-local-class.cpp b/clang/test/CodeGenCXX/static-local-in-local-class.cpp index a70afcdc388..2a82c8ff7da 100644 --- a/clang/test/CodeGenCXX/static-local-in-local-class.cpp +++ b/clang/test/CodeGenCXX/static-local-in-local-class.cpp @@ -127,7 +127,7 @@ extern "C" int call_block_deduced_return() { // CHECK: load i32, i32* % // CHECK: ret i32 % -// CHECK-LABEL: define internal i32* @_ZZZL20block_deduced_returnvEUb_EN1SclEv(%struct.S.6* %this) #0 align 2 { +// CHECK-LABEL: define internal i32* @_ZZZL20block_deduced_returnvEUb_EN1SclEv(%struct.S.6* %this) #1 align 2 { // CHECK: ret i32* @_ZZZL20block_deduced_returnvEUb_E1n inline auto static_local_label(void *p) { |