[clang] [compiler-rt] [ubsan] Display correct runtime messages for negative _BitInt (PR #96240)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 14 22:32:34 PDT 2024


================
@@ -125,6 +137,26 @@ class TypeDescriptor {
     return 1 << (TypeInfo >> 1);
   }
 
+  const char *getBitIntBitCountPointer() const {
+    CHECK(isBitIntTy());
----------------
MaskRay wrote:

CHECK unconditionally compiles to additional code. perhaps DCHECK 

https://github.com/llvm/llvm-project/pull/96240


More information about the llvm-commits mailing list