[llvm] r369138 - Escape % in printf format string.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 16 11:23:54 PDT 2019
Author: eugenis
Date: Fri Aug 16 11:23:54 2019
New Revision: 369138
URL: http://llvm.org/viewvc/llvm-project?rev=369138&view=rev
Log:
Escape % in printf format string.
Fixes branch-relax-block-size.mir on the ASan builder.
Modified:
llvm/trunk/lib/CodeGen/BranchRelaxation.cpp
Modified: llvm/trunk/lib/CodeGen/BranchRelaxation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/BranchRelaxation.cpp?rev=369138&r1=369137&r2=369138&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/BranchRelaxation.cpp (original)
+++ llvm/trunk/lib/CodeGen/BranchRelaxation.cpp Fri Aug 16 11:23:54 2019
@@ -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);
}
}
More information about the llvm-commits
mailing list