diff options
author | Kuba Mracek <mracek@apple.com> | 2022-01-12 05:19:28 -0800 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2022-01-12 05:25:02 -0800 |
commit | 23e8a4d16018076e6eed4aa821c020b7fe348c69 (patch) | |
tree | aa364f07eb8dc768550bbdfde9b36c00a23adbe5 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | b5493ff571a98308b52c9d2cc78a3b8156cd7514 (diff) | |
download | llvm-23e8a4d16018076e6eed4aa821c020b7fe348c69.zip llvm-23e8a4d16018076e6eed4aa821c020b7fe348c69.tar.gz llvm-23e8a4d16018076e6eed4aa821c020b7fe348c69.tar.bz2 |
[UBSan] Relax test expectations in Misc/objc-cast.m test
The test checks that an array of Obj-C literal integers (e.g. `@1`) gets a UBSan
warning when cast to an NSString, however the actual concrete Obj-C class of
literal integers doesn't always need to be __NSCFNumber. Let's relax the test
expectations to allow NSConstantIntegerNumber. Which exact subclass of NSNumber
is used is not actually important for the test (the test is just checking that
the invalid cast warning is thrown).
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions