diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-09 04:46:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-09 04:46:40 +0000 |
commit | c66996ab3451a29a207e7871b0cbf984beaf941c (patch) | |
tree | 77199b3d18697e73309654473d68259420322255 /lib/CodeGen/AsmPrinter/DwarfWriter.cpp | |
parent | 086c788b3987161c123c0330e39bd591d6460fc9 (diff) |
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
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
0 files changed, 0 insertions, 0 deletions