[PATCH] D55252: fix PointerIntPair visualizer

Trass3r via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 3 22:59:03 PST 2018


Trass3r created this revision.
Trass3r added a reviewer: zturner.
Herald added a subscriber: llvm-commits.

Repository:
  rL LLVM

https://reviews.llvm.org/D55252

Files:
  utils/LLVMVisualizers/llvm.natvis


Index: utils/LLVMVisualizers/llvm.natvis
===================================================================
--- utils/LLVMVisualizers/llvm.natvis
+++ utils/LLVMVisualizers/llvm.natvis
@@ -85,10 +85,10 @@
   </Type>
 
   <Type Name="llvm::PointerIntPair<*,*,*,*>">
-    <DisplayString>{IntMask}: {($T1)(Value & PointerBitMask)} [{($T3)((Value >> IntShift) & IntMask)}]</DisplayString>
+    <DisplayString>{$T5::IntMask}: {($T1)(Value & $T5::PointerBitMask)} [{($T3)((Value >> $T5::IntShift) & $T5::IntMask)}]</DisplayString>
     <Expand>
-      <Item Name="[ptr]">($T1)(Value & PointerBitMask)</Item>
-      <Item Name="[int]">($T3)((Value >> IntShift) & IntMask)</Item>
+      <Item Name="[ptr]">($T1)(Value & $T5::PointerBitMask)</Item>
+      <Item Name="[int]">($T3)((Value >> $T5::IntShift) & $T5::IntMask)</Item>
     </Expand>
   </Type>
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55252.176550.patch
Type: text/x-patch
Size: 910 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181204/90d4dc93/attachment.bin>


More information about the llvm-commits mailing list