[llvm] r240797 - Fix unused variable from r240792.
Alex Lorenz
arphaman at gmail.com
Fri Jun 26 10:07:27 PDT 2015
Author: arphaman
Date: Fri Jun 26 12:07:27 2015
New Revision: 240797
URL: http://llvm.org/viewvc/llvm-project?rev=240797&view=rev
Log:
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.
Modified:
llvm/trunk/lib/CodeGen/MIRPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/MIRPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MIRPrinter.cpp?rev=240797&r1=240796&r2=240797&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MIRPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/MIRPrinter.cpp Fri Jun 26 12:07:27 2015
@@ -90,6 +90,7 @@ void MIRPrinter::print(const MachineFunc
// 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);
More information about the llvm-commits
mailing list