summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/llvm-pdbutil/LLVMOutputStyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-pdbutil/LLVMOutputStyle.cpp b/llvm/tools/llvm-pdbutil/LLVMOutputStyle.cpp
index 4719f00f07f..980e3d3d41b 100644
--- a/llvm/tools/llvm-pdbutil/LLVMOutputStyle.cpp
+++ b/llvm/tools/llvm-pdbutil/LLVMOutputStyle.cpp
@@ -300,9 +300,9 @@ public:
private:
Error dumpTypeRecord(StringRef Label, TypeIndex Index) {
bool Success = false;
+ DictScope D(P, Label);
if (IPI) {
CompactTypeDumpVisitor CTDV(*IPI, Index, &P);
- DictScope D(P, Label);
if (IPI->contains(Index)) {
CVType Type = IPI->getType(Index);
if (auto EC = codeview::visitTypeRecord(Type, CTDV))
OpenPOWER on IntegriCloud