From 1f3aa2af9d79daa6431443caac04839e54644a8f Mon Sep 17 00:00:00 2001 From: Marek Kurdej Date: Wed, 26 Jan 2022 15:59:21 +0100 Subject: [PATCH] [Visualizers] Fix SmallVector visualizer for T inside an anonymous namespace. Use `value_type` instead of `$T1`. At least on MSVC 2022, using $T1 does not work. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D118105 --- llvm/utils/LLVMVisualizers/llvm.natvis | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/utils/LLVMVisualizers/llvm.natvis b/llvm/utils/LLVMVisualizers/llvm.natvis index 108f191..622ea77 100644 --- a/llvm/utils/LLVMVisualizers/llvm.natvis +++ b/llvm/utils/LLVMVisualizers/llvm.natvis @@ -10,13 +10,13 @@ For later versions of Visual Studio, no setup is required. - {(($T1*)BeginX)[0]}{*this,view(elt1)} + {((value_type*)BeginX)[0]}{*this,view(elt1)} - , {(($T1*)BeginX)[1]}{*this,view(elt2)} + , {((value_type*)BeginX)[1]}{*this,view(elt2)} - , {(($T1*)BeginX)[2]}{*this,view(elt3)} + , {((value_type*)BeginX)[2]}{*this,view(elt3)} - , {(($T1*)BeginX)[3]}{*this,view(elt4)} + , {((value_type*)BeginX)[3]}{*this,view(elt4)} , /* {Size - 4} more*/ empty @@ -27,7 +27,7 @@ For later versions of Visual Studio, no setup is required. Capacity Size - ($T1*)BeginX + (value_type*)BeginX -- 2.7.4