From: Alex Lorenz Date: Fri, 26 Jun 2015 17:07:27 +0000 (+0000) Subject: Fix unused variable from r240792. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cb2dc5bc1c9225a95d71a001e1ea26b7aeec1aca;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240797 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MIRPrinter.cpp b/lib/CodeGen/MIRPrinter.cpp index f9595f88b0b..9446849ffd2 100644 --- a/lib/CodeGen/MIRPrinter.cpp +++ b/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);