tbaederr wrote:
I don't think we can test `DynamicAllocLValue` like this, since we can't save
it in the `APValue` for an initialized global. You'll have to add a call to
`dump()` e.g. like:
```diff
diff --git i/clang/lib/AST/ExprConstant.cpp w/clang/lib/AST/ExprConstant.cpp
index d1cc722fb794..df52ff82ea2a 100644
--- i/clang/lib/AST/ExprConstant.cpp
+++ w/clang/lib/AST/ExprConstant.cpp
@@ -17087,6 +17087,8 @@ bool Expr::EvaluateAsInitializer(APValue &Value, const
ASTContext &Ctx,
return false;
}
+ Value.dump();
+
// At this point, any lifetime-extended temporaries are completely
// initialized.
Info.performLifetimeExtension();
```
to reproduce it.
https://github.com/llvm/llvm-project/pull/135178
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits