GCOV.cpp: Use PRIu64 instead of %lu.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 10 Dec 2013 05:39:40 +0000 (05:39 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 10 Dec 2013 05:39:40 +0000 (05:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196882 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/GCOV.cpp

index fb7370020a59869c119ef113ba85e878096c2e57..5587cbfa08deda92370b7509bbc405304659554c 100644 (file)
@@ -426,7 +426,7 @@ void FileInfo::print(StringRef GCNOFile, StringRef GCDAFile,
           if (Block->getCount() == 0)
             OS << "    $$$$$:";
           else
-            OS << format("%9lu:", Block->getCount());
+            OS << format("%9" PRIu64 ":", (uint64_t)Block->getCount());
           OS << format("%5u-block  %u\n", i+1, BlockNo++);
         }
       }