[InstCombine] getMaskedTypeForICmpPair - remove dead code. NFCI.

Ok should be true at this point, so the early-out is dead - replace with an assert.
This commit is contained in:
Simon Pilgrim 2021-07-30 18:31:50 +01:00
parent 3c0b596ecc
commit afc6b09dee
1 changed files with 2 additions and 2 deletions

View File

@ -367,9 +367,9 @@ getMaskedTypeForICmpPair(Value *&A, Value *&B, Value *&C,
} else {
return None;
}
assert(Ok && "Failed to find AND on the right side of the RHS icmp.");
}
if (!Ok)
return None;
if (L11 == A) {
B = L12;