[PATCH] D131194: [C++20] Fix crash-on-valid with consteval temporary construction through list initialization
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 4 12:55:38 PDT 2022
efriedma added a comment.
Instead of trying to dig through subexpressions of the ConstantExpr to try to infer the type we need, can we just compute it directly?
QualType RetType = CE->getType();
if (CE->isGLValue())
RetType = CGM.getContext().getLValueReferenceType(RetType);
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