summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/ParameterAttributes.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-01-13 17:10:08 +0000
committerSteve Naroff <snaroff@apple.com>2008-01-13 17:10:08 +0000
commit826e91ae04a2e78d6aa61e1e6af8ad615ea60cff (patch)
tree2efde9b3ef0acb52b398dc3e57cb04fd3bbc2087 /llvm/lib/VMCore/ParameterAttributes.cpp
parentff70c5de69c0bf159a711015671815557b6e278d (diff)
downloadbcm5719-llvm-826e91ae04a2e78d6aa61e1e6af8ad615ea60cff.tar.gz
bcm5719-llvm-826e91ae04a2e78d6aa61e1e6af8ad615ea60cff.zip
Change Sema::CheckAddressOfOperation() to respect C99-only addressof rules.
Remove diagnostics from Sema::CheckIndirectionOperand(). C89/C99 allow dereferencing an incomplete type. clang appears to be emulating some incorrect gcc behavior (see below). void foo (void) { struct b; struct b* x = 0; struct b* y = &*x; // gcc produces an error ("dereferencing pointer to incomplete type") } With this patch, the above is now allowed. Bug/Patch by Eli Friedman! llvm-svn: 45933
Diffstat (limited to 'llvm/lib/VMCore/ParameterAttributes.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud