summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRPrinter.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-06-26 17:07:27 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-06-26 17:07:27 +0000
commitec6b26b955a7a5c2d41bf65396a14a5531ac3638 (patch)
tree2dc0e9e680c121b04e7e43abce8398c0bde8e786 /llvm/lib/CodeGen/MIRPrinter.cpp
parent1dcd8b09b4ebf9f44e47c488980d8a95d446d328 (diff)
downloadbcm5719-llvm-ec6b26b955a7a5c2d41bf65396a14a5531ac3638.tar.gz
bcm5719-llvm-ec6b26b955a7a5c2d41bf65396a14a5531ac3638.zip
Fix unused variable from r240792.
The variable 'I' wasn't used when assertions were disabled. This commit ensures that 'I' is used outside of an assert. llvm-svn: 240797
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRPrinter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index f9595f88b0b..9446849ffd2 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -90,6 +90,7 @@ void MIRPrinter::print(const MachineFunction &MF) {
// map back to the correct MBBs when parsing the output.
assert(MBB.getNumber() == I++ &&
"Can't print MBBs that aren't sequentially numbered");
+ (void)I;
yaml::MachineBasicBlock YamlMBB;
convert(YamlMBB, MBB);
YamlMF.BasicBlocks.push_back(YamlMBB);
OpenPOWER on IntegriCloud