Fix for PR9633 [indvars] Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatib...
authorAndrew Trick <atrick@apple.com>
Wed, 27 Apr 2011 01:21:25 +0000 (01:21 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 27 Apr 2011 01:21:25 +0000 (01:21 +0000)
commit3f95c88162cf319bce463d0e5e2d99a96c24dff6
tree1eab2736a719d417b069f6010c2ef07f89bc961b
parentcb5fd743a95898ddefd75b6d104f5e91c0d50b23
Fix for PR9633 [indvars] Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.

Added a type check in ScalarEvolution::computeSCEVAtScope to handle the case in which operands of an
AddRecExpr in the current scope are folded.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130271 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp