[all-commits] [llvm/llvm-project] 23e8a4: [UBSan] Relax test expectations in Misc/objc-cast....

Kuba (Brecka) Mracek via All-commits all-commits at lists.llvm.org
Wed Jan 12 05:25:15 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 23e8a4d16018076e6eed4aa821c020b7fe348c69
      https://github.com/llvm/llvm-project/commit/23e8a4d16018076e6eed4aa821c020b7fe348c69
  Author: Kuba Mracek <mracek at apple.com>
  Date:   2022-01-12 (Wed, 12 Jan 2022)

  Changed paths:
    M compiler-rt/test/ubsan/TestCases/Misc/objc-cast.m

  Log Message:
  -----------
  [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).




More information about the All-commits mailing list