[clang] [clang][Diagnostics] Add source range to uninitialized diagnostics (PR #65896)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 10 06:27:43 PDT 2023


================
@@ -4443,7 +4444,7 @@ struct CompoundAssignSubobjectHandler {
       return foundVector(Subobj, SubobjType);
     case APValue::Indeterminate:
       Info.FFDiag(E, diag::note_constexpr_access_uninit)
-          << /*read of=*/0 << /*uninitialized object=*/1;
+          << /*read of=*/0 << /*uninitialized object=*/1 << E->getSourceRange();
----------------
tbaederr wrote:

Just re-checked, yes.

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


More information about the cfe-commits mailing list