[PATCH] D131194: [C++20] Fix crash-on-valid with consteval temporary construction through list initialization
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 4 12:30:20 PDT 2022
erichkeane added inline comments.
================
Comment at: clang/lib/CodeGen/CGExprConstant.cpp:1404
+ // default value here and reset the type only as needed.
+ QualType RetType = Inner->getType();
if (auto *Call = dyn_cast<CallExpr>(Inner))
----------------
Is there any possibility to have an assert somewhere to catch when this ISN'T the type we need to see later? It would be nice to figure out what other cases we're missing below.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131194/new/
https://reviews.llvm.org/D131194
More information about the cfe-commits
mailing list