We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4d10e7 commit b740899Copy full SHA for b740899
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -1114,8 +1114,8 @@ bool WidenIV::widenWithVariantUse(NarrowIVDefUse DU) {
1114
1115
// The operand that is not defined by NarrowDef of DU. Let's call it the
1116
// other operand.
1117
- unsigned ExtendOperIdx = DU.NarrowUse->getOperand(0) == NarrowDef ? 1 : 0;
1118
- assert(DU.NarrowUse->getOperand(1 - ExtendOperIdx) == DU.NarrowDef &&
+ assert((NarrowUse->getOperand(0) == NarrowDef ||
+ NarrowUse->getOperand(1) == NarrowDef) &&
1119
"bad DU");
1120
1121
const OverflowingBinaryOperator *OBO =
0 commit comments