diff --git a/utils/LLVMVisualizers/llvm.natvis b/utils/LLVMVisualizers/llvm.natvis index 56089648e15..462c097c12e 100644 --- a/utils/LLVMVisualizers/llvm.natvis +++ b/utils/LLVMVisualizers/llvm.natvis @@ -105,13 +105,12 @@ For later versions of Visual Studio, no setup is required. - {"$T1", s8b}: {($T1)((Val.Val.Value >> 2) << 2)} - {"$T2", s8b}: {($T2)((Val.Val.Value >> 2) << 2)} - {"$T3", s8b}: {($T3)((Val.Val.Value >> 2) << 2)} + {"$T3", s8b}: {($T3)(Val.Val.Value & ValTy::ValTy::InfoTy::PointerBitMask)} + {*(InnerUnion*)&Val.Val.Value} - ($T1)((Val.Val.Value >> 2) << 2) - ($T2)((Val.Val.Value >> 2) << 2) - ($T3)((Val.Val.Value >> 2) << 2) + "$T3", s8b + ($T3)(Val.Val.Value & ValTy::ValTy::InfoTy::PointerBitMask) + *(InnerUnion*)&Val.Val.Value