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

via cfe-commits cfe-commits at lists.llvm.org
Fri May 31 13:24:26 PDT 2024


================
@@ -3318,6 +3350,20 @@ llvm::Constant *CodeGenFunction::EmitCheckTypeDescriptor(QualType T) {
       DiagnosticsEngine::ak_qualtype, (intptr_t)T.getAsOpaquePtr(), StringRef(),
       StringRef(), std::nullopt, Buffer, std::nullopt);
 
+  if (IsBitInt) {
+    // The Structure is: 0 to end the string, 32 bit insigned integer in target
+    // endianness, zero.
----------------
earnol wrote:

Yes. OMG. I should have noticed. I is close to U on my keyboard.

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


More information about the cfe-commits mailing list