Suppress GCC compiler warnings in release builds about variables that are only

read in asserts.

llvm-svn: 181689
This commit is contained in:
Duncan Sands 2013-05-13 07:50:47 +00:00
parent b910bbb87a
commit 0480b9b54e
3 changed files with 3 additions and 0 deletions

View File

@ -631,6 +631,7 @@ bool HexagonNewValueJump::runOnMachineFunction(MachineFunction &MF) {
.addMBB(jmpTarget);
assert(NewMI && "New Value Jump Instruction Not created!");
(void)NewMI;
if (cmpInstr->getOperand(0).isReg() &&
cmpInstr->getOperand(0).isKill())
cmpInstr->getOperand(0).setIsKill(false);

View File

@ -1196,6 +1196,7 @@ RewriteIntelBracExpression(SmallVectorImpl<AsmRewrite> *AsmRewrites,
}
}
assert (Found && "Unable to rewrite ImmDisp.");
(void)Found;
} else {
// We have a symbolic and an immediate displacement, but no displacement
// before the bracketed expression. Put the immediate displacement

View File

@ -639,6 +639,7 @@ Value *BoUpSLP::vectorizeTree(ArrayRef<Value *> VL, int VF) {
Replaced = true;
}
assert(Replaced && "Must replace at least one outside user");
(void)Replaced;
}
// We moved some instructions around. We have to number them again