[clang] 8b301b4 - [clang][Interp][NFC] Print Pointee address of Pointer

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 11 03:02:00 PST 2023


Author: Timm Bäder
Date: 2023-01-11T12:01:32+01:00
New Revision: 8b301b4f6b3d7068fd81f88ac001916c2f138c33

URL: https://github.com/llvm/llvm-project/commit/8b301b4f6b3d7068fd81f88ac001916c2f138c33
DIFF: https://github.com/llvm/llvm-project/commit/8b301b4f6b3d7068fd81f88ac001916c2f138c33.diff

LOG: [clang][Interp][NFC] Print Pointee address of Pointer

Added: 
    

Modified: 
    clang/lib/AST/Interp/Pointer.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/Pointer.h b/clang/lib/AST/Interp/Pointer.h
index 09738fbfb137b..38341ae2322d9 100644
--- a/clang/lib/AST/Interp/Pointer.h
+++ b/clang/lib/AST/Interp/Pointer.h
@@ -298,7 +298,7 @@ class Pointer {
 
   /// Prints the pointer.
   void print(llvm::raw_ostream &OS) const {
-    OS << "{" << Base << ", " << Offset << ", ";
+    OS << Pointee << " {" << Base << ", " << Offset << ", ";
     if (Pointee)
       OS << Pointee->getSize();
     else


        


More information about the cfe-commits mailing list