llvm-objdump.cpp: Appease MSC16 x64. utostr(n++) causes internal compiler error.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 27 May 2013 00:02:48 +0000 (00:02 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 27 May 2013 00:02:48 +0000 (00:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182722 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-objdump/llvm-objdump.cpp

index d8611d8b3d1fcccbb8f1fcbccd1901b993d48182..8049dac3a7dc10de82d2e112de9369fba0dc3baf 100644 (file)
@@ -355,8 +355,9 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
                                        FI != FE; ++FI) {
       static int filenum = 0;
       emitDOTFile((Twine((*FI)->getName()) + "_" +
-                   utostr(filenum++) + ".dot").str().c_str(),
+                   utostr(filenum) + ".dot").str().c_str(),
                     **FI, IP.get());
+      ++filenum;
     }
   }