[clang] [clang] Avoid printing overly large integer/_BitInt numbers in static assertion failure diagnostics #71675 (PR #145053)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 1 12:27:01 PDT 2025


================
@@ -17575,7 +17576,21 @@ static bool ConvertAPValueToString(const APValue &V, QualType T,
           break;
         }
       }
-      V.getInt().toString(Str);
+
+      llvm::APSInt vInt = V.getInt();
----------------
topperc wrote:

Can this be `const llvm::APInst &vInt`?

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


More information about the cfe-commits mailing list