When inserting casts, be careful of where we put them. We cannot insert
authorChris Lattner <sabre@nondot.org>
Sat, 6 May 2006 09:10:37 +0000 (09:10 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 6 May 2006 09:10:37 +0000 (09:10 +0000)
commitf0df8824eb2bf8a5fb91ce6fd1db590caf34f994
tree683aa0a71f7edaec7c5d895c11ad72c90a5149f4
parent707f41302b51e0ff4e266933387b2c62bbb596e8
When inserting casts, be careful of where we put them.  We cannot insert
a cast immediately before a PHI node.

This fixes Regression/CodeGen/Generic/2006-05-06-GEP-Cast-Sink-Crash.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28143 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp