================
@@ -14882,7 +14882,7 @@ void Sema::CheckArrayAccess(const Expr *BaseExpr, const
Expr *IndexExpr,
// dependent CharUnits)
DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr,
PDiag(DiagID)
- << toString(index, 10, true) << AddrBits
+ << index << AddrBits
<< (unsigned)ASTC.toBits(*ElemCharUnits)
<< toString(ElemBytes, 10, false)
----------------
tbaederr wrote:
https://github.com/llvm/llvm-project/pull/161047/files#diff-4ed098b529859c12c60b36efe43860c5fd298ba4b7a234a3904c18c53ca0f819R1378
The `operator<<` taking an `APInt` passes `false` anyway, so I think that
should just work.
https://github.com/llvm/llvm-project/pull/161474
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits