https://github.com/tbaederr created 
https://github.com/llvm/llvm-project/pull/183691

So we know whether a pointer is a dummy and alive.

>From e93e09ad5c9d71dc599920a4d9740be224080cde Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <[email protected]>
Date: Fri, 27 Feb 2026 07:40:16 +0100
Subject: [PATCH] [clang][bytecode][NFC] Print more info in Pointer::operator<<

So we know whether a pointer is a dummy and alive.
---
 clang/lib/AST/ByteCode/Pointer.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/clang/lib/AST/ByteCode/Pointer.h b/clang/lib/AST/ByteCode/Pointer.h
index 5c3f98ad01eb4..010e917de81b2 100644
--- a/clang/lib/AST/ByteCode/Pointer.h
+++ b/clang/lib/AST/ByteCode/Pointer.h
@@ -875,6 +875,10 @@ inline llvm::raw_ostream &operator<<(llvm::raw_ostream 
&OS, const Pointer &P) {
     else
       OS << " index " << P.getIndex();
   }
+  if (P.isBlockPointer() && P.block() && P.block()->isDummy())
+    OS << " dummy";
+  if (!P.isLive())
+    OS << " dead";
   return OS;
 }
 

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to