[PATCH] D153969: [clang][ExprConstant] Fix crash on uninitialized base class subobject

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 28 10:15:33 PDT 2023


tbaeder added inline comments.


================
Comment at: clang/lib/AST/ExprConstant.cpp:2422
+              << BS.getType();
+          Info.Note(BS.getBeginLoc(), diag::note_constexpr_base_inherited_here);
+          return false;
----------------
Can you pass `<< BS.getSourceRange()` here? Does that improve things?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153969/new/

https://reviews.llvm.org/D153969



More information about the cfe-commits mailing list