From a9c4c2c711ebf769fc23bdbcc479e4288ca8bbc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 14 Nov 2025 03:49:17 +0100 Subject: [PATCH] [clang][bytecode] Print field descriptor in Pointer::print() This is almost always useful information and ::print() is debug-only code. --- clang/lib/AST/ByteCode/Pointer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/lib/AST/ByteCode/Pointer.h b/clang/lib/AST/ByteCode/Pointer.h index cd738ce8b2a3e..6efec48df71cb 100644 --- a/clang/lib/AST/ByteCode/Pointer.h +++ b/clang/lib/AST/ByteCode/Pointer.h @@ -830,6 +830,9 @@ class Pointer { inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Pointer &P) { P.print(OS); + OS << ' '; + if (const Descriptor *D = P.getFieldDesc()) + D->dump(OS); return OS; }