]> granicus.if.org Git - llvm/commitdiff
Escape % in printf format string.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 16 Aug 2019 18:23:54 +0000 (18:23 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 16 Aug 2019 18:23:54 +0000 (18:23 +0000)
Fixes branch-relax-block-size.mir on the ASan builder.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369138 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/BranchRelaxation.cpp

index 3ad6266d4f357cfe7238cadc3885c2d4b13bda4a..55fbf0163dd14dd7e5c7136ca5370315f1df5433 100644 (file)
@@ -143,7 +143,7 @@ void BranchRelaxation::verify() {
 LLVM_DUMP_METHOD void BranchRelaxation::dumpBBs() {
   for (auto &MBB : *MF) {
     const BasicBlockInfo &BBI = BlockInfo[MBB.getNumber()];
-    dbgs() << format("%bb.%u\toffset=%08x\t", MBB.getNumber(), BBI.Offset)
+    dbgs() << format("%%bb.%u\toffset=%08x\t", MBB.getNumber(), BBI.Offset)
            << format("size=%#x\n", BBI.Size);
   }
 }