forked from OSchip/llvm-project
[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:
parent
3c0b596ecc
commit
afc6b09dee
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue