forked from OSchip/llvm-project
Suppress GCC compiler warnings in release builds about variables that are only
read in asserts. llvm-svn: 181689
This commit is contained in:
parent
b910bbb87a
commit
0480b9b54e
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue