]> granicus.if.org Git - llvm/commitdiff
Fix printing error.
authorZachary Turner <zturner@google.com>
Mon, 12 Jun 2017 22:08:03 +0000 (22:08 +0000)
committerZachary Turner <zturner@google.com>
Mon, 12 Jun 2017 22:08:03 +0000 (22:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305240 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-pdbutil/LLVMOutputStyle.cpp

index 4719f00f07faea2eb7d253d6eb503c995691d758..980e3d3d41bda7b52d34c00f78ff875e11661d62 100644 (file)
@@ -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))