summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInherit.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
commit62975a788e75d85cfc8600184fbbbc521ff74ed0 (patch)
tree4c65ecb1eedcdcc92707e48f0ef3b34c438a2d32 /clang/lib/Sema/SemaInherit.cpp
parentac345a399078ee22075488092a4d6bfe6d9738b9 (diff)
downloadbcm5719-llvm-62975a788e75d85cfc8600184fbbbc521ff74ed0.tar.gz
bcm5719-llvm-62975a788e75d85cfc8600184fbbbc521ff74ed0.zip
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. llvm-svn: 69943
Diffstat (limited to 'clang/lib/Sema/SemaInherit.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud