mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Reapply 105544.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106301 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5af58d885e
commit
c72f0c8c57
@ -1275,9 +1275,9 @@ const SCEV *ScalarEvolution::getAddExpr(SmallVectorImpl<const SCEV *> &Ops,
|
|||||||
assert(!Ops.empty() && "Cannot get empty add!");
|
assert(!Ops.empty() && "Cannot get empty add!");
|
||||||
if (Ops.size() == 1) return Ops[0];
|
if (Ops.size() == 1) return Ops[0];
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
const Type *ETy = getEffectiveSCEVType(Ops[0]->getType());
|
||||||
for (unsigned i = 1, e = Ops.size(); i != e; ++i)
|
for (unsigned i = 1, e = Ops.size(); i != e; ++i)
|
||||||
assert(getEffectiveSCEVType(Ops[i]->getType()) ==
|
assert(getEffectiveSCEVType(Ops[i]->getType()) == ETy &&
|
||||||
getEffectiveSCEVType(Ops[0]->getType()) &&
|
|
||||||
"SCEVAddExpr operand types don't match!");
|
"SCEVAddExpr operand types don't match!");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user