forked from OSchip/llvm-project
[TSan] Ensure test uses tagged pointer
This is a test-only failure. The test wrongly assumes that this gets us a tagged pointer: ``` NSObject* num1 = @7; assert(isTaggedPtr(num1)); ``` However, on newer deployment targets that have “const data support” we get a “normal” pointer to constant object. Radar-Id: rdar://problem/83217293
This commit is contained in:
parent
96cee29762
commit
c79d484ab1
|
@ -15,7 +15,7 @@ int main(int argc, char* argv[]) {
|
|||
|
||||
@autoreleasepool {
|
||||
NSObject* obj = [NSObject new];
|
||||
NSObject* num1 = @7;
|
||||
NSObject* num1 = [NSNumber numberWithInt:7];
|
||||
NSObject* num2 = [NSNumber numberWithInt:arg];
|
||||
|
||||
assert(!isTaggedPtr(obj));
|
||||
|
|
Loading…
Reference in New Issue