Fix PR3746 - Crash in isel with GEP of function pointer
authorChris Lattner <sabre@nondot.org>
Mon, 9 Mar 2009 04:46:40 +0000 (04:46 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 9 Mar 2009 04:46:40 +0000 (04:46 +0000)
commitc66996ab3451a29a207e7871b0cbf984beaf941c
tree77199b3d18697e73309654473d68259420322255
parent086c788b3987161c123c0330e39bd591d6460fc9
Fix PR3746 - Crash in isel with GEP of function pointer
by checking that the top-level type of a gep is sized. This
causes us to reject the example with:

llvm-as: t2.ll:2:16: invalid getelementptr indices
getelementptr i32()* null, i32 1
              ^

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66393 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Instructions.cpp