Fix -Wunused-variable in non-asserts build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267128 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Liu 2016-04-22 09:50:31 +00:00
parent c4f4f71fb7
commit 2321e6017b

View File

@ -444,6 +444,7 @@ bool RegisterBankInfo::InstructionMapping::verify(
assert(MI.getParent() && MI.getParent()->getParent() &&
"MI must be connected to a MachineFunction");
const MachineFunction &MF = *MI.getParent()->getParent();
(void)MF;
for (unsigned Idx = 0; Idx < NumOperands; ++Idx) {
const MachineOperand &MO = MI.getOperand(Idx);