From: Zachary Turner Date: Mon, 12 Jun 2017 22:08:03 +0000 (+0000) Subject: Fix printing error. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b99d5dc7a51d4fe08ea116eef8a31d7b2f1d7032;p=llvm Fix printing error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305240 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-pdbutil/LLVMOutputStyle.cpp b/tools/llvm-pdbutil/LLVMOutputStyle.cpp index 4719f00f07f..980e3d3d41b 100644 --- a/tools/llvm-pdbutil/LLVMOutputStyle.cpp +++ b/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))