[clang] [clang][ast]: Add DynamicAllocLValue and TypeInfoLValue support to APValue::dump(). (PR #135178)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 11 00:03:58 PDT 2025


================
@@ -738,6 +738,10 @@ void TextNodeDumper::Visit(const APValue &Value, QualType Ty) {
     else if (const auto *BE = B.dyn_cast<const Expr *>()) {
       OS << BE->getStmtClassName() << ' ';
       dumpPointer(BE);
+    } else if (B.is<TypeInfoLValue>()) {
+      OS << "TypeInfoLValue";
+    } else if (B.is<DynamicAllocLValue>()) {
+      OS << "DynamicAllocLValue";
----------------
tbaederr wrote:

Would be good to print more information about them.

https://github.com/llvm/llvm-project/pull/135178


More information about the cfe-commits mailing list