[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:
Julian Lettner 2021-10-26 11:43:04 -07:00
parent 96cee29762
commit c79d484ab1
1 changed files with 1 additions and 1 deletions

View File

@ -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));