From: Evgeniy Stepanov Date: Fri, 16 Aug 2019 18:23:54 +0000 (+0000) Subject: Escape % in printf format string. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=686918b062cced382fa4195e4dc76c8bb6003b11;p=llvm Escape % in printf format string. 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 --- diff --git a/lib/CodeGen/BranchRelaxation.cpp b/lib/CodeGen/BranchRelaxation.cpp index 3ad6266d4f3..55fbf0163dd 100644 --- a/lib/CodeGen/BranchRelaxation.cpp +++ b/lib/CodeGen/BranchRelaxation.cpp @@ -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); } }