summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-24 00:30:45 +0000
committerChris Lattner <sabre@nondot.org>2009-04-24 00:30:45 +0000
commit1efaa9594a81709a17658fd80ae7e783e1026407 (patch)
tree5806d33ade9e5b52bfb494a9efe4ea29f52a2566 /lib/CodeGen/CGExprAgg.cpp
parent8b9fb3082bc54cf7ffe6c3772500a73388f53072 (diff)
downloadclang-1efaa9594a81709a17658fd80ae7e783e1026407.tar.gz
clang-1efaa9594a81709a17658fd80ae7e783e1026407.tar.bz2
clang-1efaa9594a81709a17658fd80ae7e783e1026407.tar.xz
Fix rdar://6821047 - clang crashes on subscript of interface in 64-bit mode
Several changes here: 1. We change Type::isIncompleteType to realize that forward declared interfaces are incomplete. This eliminate special case code for this from the sizeof path, and starts us rejecting P[4] when P is a pointer to an incomplete interface. 2. Explicitly reject P[4] when P points to an interface in non-fragile ABI mode. 3. Switch the sizeof(interface) diagnostic back to an error instead of a warning in non-fragile abi mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
0 files changed, 0 insertions, 0 deletions