From: Mike Spertus Date: Fri, 18 Mar 2016 20:06:16 +0000 (+0000) Subject: Typesafe visualization of PointerIntPairs in Visual Studio X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=024f4c17d15ae87c5d453c2f65dfccdbfe410908;p=platform%2Fupstream%2Fllvm.git Typesafe visualization of PointerIntPairs in Visual Studio In the of PointerIntPair , I cast the pointer to the actual type, so VS can leverage it while visualizing, not unlike the recent change to PointerUnion visualization. In the expansion, the current code is casting to the incorrect type (wrong number of stars), so I fixed that as well. llvm-svn: 263821 --- diff --git a/llvm/utils/llvm.natvis b/llvm/utils/llvm.natvis index 5a528bb..275800d 100644 --- a/llvm/utils/llvm.natvis +++ b/llvm/utils/llvm.natvis @@ -46,9 +46,9 @@ or create a symbolic link so it updates automatically. - {(void*)(Value & PointerBitMask)} [{($T3)((Value >> IntShift) & IntMask)}] + {IntMask}: {($T1)(Value & PointerBitMask)} [{($T3)((Value >> IntShift) & IntMask)}] - ($T1*)(Value & PointerBitMask) + ($T1)(Value & PointerBitMask) ($T3)((Value >> IntShift) & IntMask)