mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
Suppress GCC compiler warnings in release builds about variables that are only
read in asserts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181689 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -631,6 +631,7 @@ bool HexagonNewValueJump::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
.addMBB(jmpTarget);
|
.addMBB(jmpTarget);
|
||||||
|
|
||||||
assert(NewMI && "New Value Jump Instruction Not created!");
|
assert(NewMI && "New Value Jump Instruction Not created!");
|
||||||
|
(void)NewMI;
|
||||||
if (cmpInstr->getOperand(0).isReg() &&
|
if (cmpInstr->getOperand(0).isReg() &&
|
||||||
cmpInstr->getOperand(0).isKill())
|
cmpInstr->getOperand(0).isKill())
|
||||||
cmpInstr->getOperand(0).setIsKill(false);
|
cmpInstr->getOperand(0).setIsKill(false);
|
||||||
|
@@ -1196,6 +1196,7 @@ RewriteIntelBracExpression(SmallVectorImpl<AsmRewrite> *AsmRewrites,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
assert (Found && "Unable to rewrite ImmDisp.");
|
assert (Found && "Unable to rewrite ImmDisp.");
|
||||||
|
(void)Found;
|
||||||
} else {
|
} else {
|
||||||
// We have a symbolic and an immediate displacement, but no displacement
|
// We have a symbolic and an immediate displacement, but no displacement
|
||||||
// before the bracketed expression. Put the immediate displacement
|
// before the bracketed expression. Put the immediate displacement
|
||||||
|
@@ -639,6 +639,7 @@ Value *BoUpSLP::vectorizeTree(ArrayRef<Value *> VL, int VF) {
|
|||||||
Replaced = true;
|
Replaced = true;
|
||||||
}
|
}
|
||||||
assert(Replaced && "Must replace at least one outside user");
|
assert(Replaced && "Must replace at least one outside user");
|
||||||
|
(void)Replaced;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We moved some instructions around. We have to number them again
|
// We moved some instructions around. We have to number them again
|
||||||
|
Reference in New Issue
Block a user