[clang][Interp][NFC] Print Pointee address of Pointer
authorTimm Bäder <tbaeder@redhat.com>
Mon, 26 Dec 2022 11:00:52 +0000 (12:00 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Wed, 11 Jan 2023 11:01:32 +0000 (12:01 +0100)
clang/lib/AST/Interp/Pointer.h

index 09738fb..38341ae 100644 (file)
@@ -298,7 +298,7 @@ public:
 
   /// Prints the pointer.
   void print(llvm::raw_ostream &OS) const {
-    OS << "{" << Base << ", " << Offset << ", ";
+    OS << Pointee << " {" << Base << ", " << Offset << ", ";
     if (Pointee)
       OS << Pointee->getSize();
     else