Author: Timm Baeder Date: 2026-02-27T10:10:37+01:00 New Revision: 16aa1900ef8fe0ac64a60d681adf4bcbaa7d864b
URL: https://github.com/llvm/llvm-project/commit/16aa1900ef8fe0ac64a60d681adf4bcbaa7d864b DIFF: https://github.com/llvm/llvm-project/commit/16aa1900ef8fe0ac64a60d681adf4bcbaa7d864b.diff LOG: [clang][bytecode][NFC] Print more info in Pointer::operator<< (#183691) So we know whether a pointer is a dummy and alive. Added: Modified: clang/lib/AST/ByteCode/Pointer.h Removed: ################################################################################ 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
