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 | 6090a42fe5d37187fd31a62712490ce467bdbc23 (patch) | |
tree | d250db705b384374454558072873127562246c7f /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 3b935fbcf229d07fc3e74774436b2c983395757a (diff) | |
download | bcm5719-llvm-6090a42fe5d37187fd31a62712490ce467bdbc23.tar.gz bcm5719-llvm-6090a42fe5d37187fd31a62712490ce467bdbc23.zip |
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions