diff options
| author | Jordy Rose <jediknil@belkadan.com> | 2010-06-20 04:30:57 +0000 |
|---|---|---|
| committer | Jordy Rose <jediknil@belkadan.com> | 2010-06-20 04:30:57 +0000 |
| commit | 2dd9b02cc85d40c21e2bf4f500751c318bf51ab3 (patch) | |
| tree | a5e67779dbc5fa555c109befda25e335fe0fadb6 /clang/lib/CodeGen/CGExprConstant.cpp | |
| parent | 884a8fe5fa01f55aa53d9c2b02dbbf0f6c1a5837 (diff) | |
| download | bcm5719-llvm-2dd9b02cc85d40c21e2bf4f500751c318bf51ab3.tar.gz bcm5719-llvm-2dd9b02cc85d40c21e2bf4f500751c318bf51ab3.zip | |
Casting to void* or any other pointer-to-sizeless type (e.g. function pointers) causes a divide-by-zero error. Simple fix: check if the pointee type size is 0 and bail out early if it is.
llvm-svn: 106401
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions

