diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-18 19:09:27 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-18 19:09:27 +0000 |
commit | c72f0c8c57a79fe9d32d9147ec3b8717ade6faa1 (patch) | |
tree | 2a2b7acbce86132b1dd1cbb67be3204b4f71cf39 /lib/Analysis/ScalarEvolution.cpp | |
parent | 5af58d885e5f8348505ce8d87b61fe2549d32501 (diff) |
Reapply 105544.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index b2ac2aec64..92b2ecd72b 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -1275,9 +1275,9 @@ const SCEV *ScalarEvolution::getAddExpr(SmallVectorImpl<const SCEV *> &Ops, assert(!Ops.empty() && "Cannot get empty add!"); if (Ops.size() == 1) return Ops[0]; #ifndef NDEBUG + const Type *ETy = getEffectiveSCEVType(Ops[0]->getType()); for (unsigned i = 1, e = Ops.size(); i != e; ++i) - assert(getEffectiveSCEVType(Ops[i]->getType()) == - getEffectiveSCEVType(Ops[0]->getType()) && + assert(getEffectiveSCEVType(Ops[i]->getType()) == ETy && "SCEVAddExpr operand types don't match!"); #endif |