diff options
| author | Pete Cooper <peter_cooper@apple.com> | 2018-12-20 18:05:41 +0000 |
|---|---|---|
| committer | Pete Cooper <peter_cooper@apple.com> | 2018-12-20 18:05:41 +0000 |
| commit | 6c47f54df8bc545ae9c81253523b81beaf00b597 (patch) | |
| tree | 0ac46b37976dda3b1be7f70cd1cdb1b53888da49 /clang/test/CodeGenObjC/os_log.m | |
| parent | 9adf3fc405178fd733d354a226391e1c504ab885 (diff) | |
| download | bcm5719-llvm-6c47f54df8bc545ae9c81253523b81beaf00b597.tar.gz bcm5719-llvm-6c47f54df8bc545ae9c81253523b81beaf00b597.zip | |
Use @llvm.objc.clang.arc.use intrinsic instead of clang.arc.use function.
Calls to this function are deleted in the ARC optimizer. However when the ARC
optimizer was updated to use intrinsics instead of functions (r349534), the corresponding
clang change (r349535) to use intrinsics missed this one so it wasn't being deleted.
llvm-svn: 349782
Diffstat (limited to 'clang/test/CodeGenObjC/os_log.m')
| -rw-r--r-- | clang/test/CodeGenObjC/os_log.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGenObjC/os_log.m b/clang/test/CodeGenObjC/os_log.m index 34b62c7c33e..6acd58304aa 100644 --- a/clang/test/CodeGenObjC/os_log.m +++ b/clang/test/CodeGenObjC/os_log.m @@ -33,7 +33,7 @@ void *test_builtin_os_log(void *buf) { // CHECK: %[[ARGDATA_I:.*]] = getelementptr i8, i8* %[[BUF]], i64 4 // CHECK: %[[ARGDATACAST_I:.*]] = bitcast i8* %[[ARGDATA_I]] to i64* // CHECK: store i64 %[[V2]], i64* %[[ARGDATACAST_I]], align 1 - // CHECK: tail call void (...) @clang.arc.use(%[[TY0]]* %[[CALL]]) + // CHECK: tail call void (...) @llvm.objc.clang.arc.use(%[[TY0]]* %[[CALL]]) // CHECK: tail call void @llvm.objc.release(i8* %[[V0]]) // CHECK: ret i8* %[[BUF]] @@ -50,7 +50,7 @@ void *test_builtin_os_log(void *buf) { // CHECK-O0: %[[V4:.*]] = ptrtoint %[[TY0]]* %[[V3]] to i64 // CHECK-O0: call void @__os_log_helper_1_2_1_8_64(i8* %[[V0]], i64 %[[V4]]) // CHECK-O0: %[[V5:.*]] = bitcast %[[TY0]]* %[[V3]] to i8* - // CHECK-O0-NOT call void (...) @clang.arc.use({{.*}} + // CHECK-O0-NOT call void (...) @llvm.objc.clang.arc.use({{.*}} // CHECK-O0: call void @llvm.objc.release(i8* %[[V5]]) // CHECK-O0: ret i8* %[[V0]] } |

