Timm =?utf-8?q?B=C3=A4der?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>
================
@@ -2651,13 +2651,13 @@ void TextNodeDumper::VisitVarDecl(const VarDecl *D) {
if (D->hasInit()) {
const Expr *E = D->getInit();
- // Only dump the value of constexpr VarDecls for now.
+ // Only evaluate the value of constexpr VarDecls.
if (E && !E->isValueDependent() && D->isConstexpr() &&
- !D->getType()->isDependentType()) {
- const APValue *Value = D->evaluateValue();
- if (Value)
- AddChild("value", [=] { Visit(*Value, E->getType()); });
- }
+ !D->getType()->isDependentType())
+ D->evaluateValue();
----------------
tbaederr wrote:
Not sure about that, does anyone else have an opinion? @AaronBallman?
https://github.com/llvm/llvm-project/pull/239672
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits