diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2019-08-16 18:23:54 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2019-08-16 18:23:54 +0000 |
commit | 187c63f14539ee6e79d71fc212475f1ad469af22 (patch) | |
tree | e64f0c6e5ebc1e2f3384abc5bda3bbf2b26629aa /llvm/lib/CodeGen/BranchRelaxation.cpp | |
parent | b1cb9fd1aaf0f6d824812ba47ac1d58a6f6961e3 (diff) | |
download | bcm5719-llvm-187c63f14539ee6e79d71fc212475f1ad469af22.tar.gz bcm5719-llvm-187c63f14539ee6e79d71fc212475f1ad469af22.zip |
Escape % in printf format string.
Fixes branch-relax-block-size.mir on the ASan builder.
llvm-svn: 369138
Diffstat (limited to 'llvm/lib/CodeGen/BranchRelaxation.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BranchRelaxation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/BranchRelaxation.cpp b/llvm/lib/CodeGen/BranchRelaxation.cpp index 3ad6266d4f3..55fbf0163dd 100644 --- a/llvm/lib/CodeGen/BranchRelaxation.cpp +++ b/llvm/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); } } |