aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2022-01-12 05:19:28 -0800
committerKuba Mracek <mracek@apple.com>2022-01-12 05:25:02 -0800
commit23e8a4d16018076e6eed4aa821c020b7fe348c69 (patch)
treeaa364f07eb8dc768550bbdfde9b36c00a23adbe5 /llvm/lib/CodeGen/MachineFunction.cpp
parentb5493ff571a98308b52c9d2cc78a3b8156cd7514 (diff)
downloadllvm-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