[llvm] r305240 - Fix printing error.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 12 15:08:03 PDT 2017


Author: zturner
Date: Mon Jun 12 17:08:03 2017
New Revision: 305240

URL: http://llvm.org/viewvc/llvm-project?rev=305240&view=rev
Log:
Fix printing error.

Modified:
    llvm/trunk/tools/llvm-pdbutil/LLVMOutputStyle.cpp

Modified: llvm/trunk/tools/llvm-pdbutil/LLVMOutputStyle.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbutil/LLVMOutputStyle.cpp?rev=305240&r1=305239&r2=305240&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbutil/LLVMOutputStyle.cpp (original)
+++ llvm/trunk/tools/llvm-pdbutil/LLVMOutputStyle.cpp Mon Jun 12 17:08:03 2017
@@ -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))




More information about the llvm-commits mailing list