mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Move assert to the right place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147779 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
47a8607721
commit
7e4ac32a4e
@ -636,9 +636,9 @@ static Value* foldLogOpOfMaskedICmps(ICmpInst *LHS, ICmpInst *RHS,
|
||||
ICmpInst::Predicate LHSCC = LHS->getPredicate(), RHSCC = RHS->getPredicate();
|
||||
unsigned mask = foldLogOpOfMaskedICmpsHelper(A, B, C, D, E, LHS, RHS,
|
||||
LHSCC, RHSCC);
|
||||
if (mask == 0) return 0;
|
||||
assert(ICmpInst::isEquality(LHSCC) && ICmpInst::isEquality(RHSCC) &&
|
||||
"foldLogOpOfMaskedICmpsHelper must return an equality predicate.");
|
||||
if (mask == 0) return 0;
|
||||
|
||||
if (NEWCC == ICmpInst::ICMP_NE)
|
||||
mask >>= 1; // treat "Not"-states as normal states
|
||||
|
Loading…
x
Reference in New Issue
Block a user