Skip to content
Commit 6090a42f authored by Chris Lattner's avatar Chris Lattner
Browse files

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
              ^

llvm-svn: 66393
parent 3b935fbc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment