Fix a bug where we'd try to find a scev value for a bitcast operand,
authorChris Lattner <sabre@nondot.org>
Fri, 23 Nov 2007 08:46:22 +0000 (08:46 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 23 Nov 2007 08:46:22 +0000 (08:46 +0000)
commit42b5e08e7123aefbc6e93b547f44e3ed7604526f
tree936ae6f5f11aec67dc8a8aaeac29a383d84043de
parenteec8b9a7d6630d45985e72f5fa396b48ba490d68
Fix a bug where we'd try to find a scev value for a bitcast operand,
even though the bitcast operand did not have integer type.  This fixes
PR1814.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44286 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Transforms/IndVarsSimplify/2007-11-23-BitcastCrash.ll [new file with mode: 0644]