[clang] [clang][ExprConst] Fix crash on uninitialized array subobject (PR #67817)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 15 22:45:32 PDT 2023
================
@@ -404,7 +404,7 @@ bool CheckPure(InterpState &S, CodePtr OpPC, const CXXMethodDecl *MD) {
static void DiagnoseUninitializedSubobject(InterpState &S, const SourceInfo &SI,
const FieldDecl *SubObjDecl) {
assert(SubObjDecl && "Subobject declaration does not exist");
- S.FFDiag(SI, diag::note_constexpr_uninitialized) << SubObjDecl;
+ S.FFDiag(SI, diag::note_constexpr_uninitialized) << true << SubObjDecl;
----------------
cor3ntin wrote:
Can you add a comment before true ? and maybe use an integer instead `<< /* of type */ 1 << ` - same in other places
https://github.com/llvm/llvm-project/pull/67817
More information about the cfe-commits
mailing list