
This fixes a regression introduced in 2b4fa5348ee157b6b1a1af44d0137ca8c7a71573 that caused us to emit shutdown-time destruction for variables with ARC ownership, using C++-specific functions that don't exist in C implementations.
13 lines
237 B
Objective-C
13 lines
237 B
Objective-C
// RUN: %clang_cc1 -triple x86_64-apple-macos10.15 -emit-llvm -fobjc-arc -o - %s | FileCheck %s
|
|
|
|
@interface I
|
|
@end
|
|
|
|
I *i() {
|
|
static I *i = ((void *)0);
|
|
return i;
|
|
}
|
|
|
|
// CHECK-NOT: __cxa_guard_acquire
|
|
// CHECK-NOT: __cxa_guard_release
|