]> granicus.if.org Git - clang/commit
Fix PR3766, a really nasty silent miscompilation case where we emitted
authorChris Lattner <sabre@nondot.org>
Mon, 9 Mar 2009 21:19:16 +0000 (21:19 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 9 Mar 2009 21:19:16 +0000 (21:19 +0000)
commit0c73f37f0a48a1512bc0477a71f0d6cffcb78fc0
tree5a14645dc411f5a67db698638f046d8601721aff
parent61f72cbd037e58f12cfe90cd442373f44092f030
Fix PR3766, a really nasty silent miscompilation case where we emitted
a warning and then threw away the AST.  While I'm in there, tighten up the
code to actually reject completely bogus cases (sending a message to a
struct).  We still allow sending a message to an int, which doesn't make
sense but GCC allows it and is easy to support.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66468 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.def
lib/Sema/SemaExprObjC.cpp
test/SemaObjC/bad-receiver-1.m
test/SemaObjC/message.m
test/SemaObjC/super.m