1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

[Indvars][NFCI] Simplify assertion.

This should be semantically identical. Also avoids unused variable
warnings in Release builds.
This commit is contained in:
Benjamin Kramer 2020-10-16 19:58:05 +02:00
parent 2fc81fbf42
commit d9c39c25a7

View File

@ -1114,8 +1114,8 @@ bool WidenIV::widenWithVariantUse(NarrowIVDefUse DU) {
// The operand that is not defined by NarrowDef of DU. Let's call it the
// other operand.
unsigned ExtendOperIdx = DU.NarrowUse->getOperand(0) == NarrowDef ? 1 : 0;
assert(DU.NarrowUse->getOperand(1 - ExtendOperIdx) == DU.NarrowDef &&
assert((NarrowUse->getOperand(0) == NarrowDef ||
NarrowUse->getOperand(1) == NarrowDef) &&
"bad DU");
const OverflowingBinaryOperator *OBO =