]> granicus.if.org Git - clang/commit
When comparing Objective-C pointers during overload resolution to
authorDouglas Gregor <dgregor@apple.com>
Wed, 27 Apr 2011 00:01:52 +0000 (00:01 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 27 Apr 2011 00:01:52 +0000 (00:01 +0000)
commit0f7b3dcece1475130e2946d66dbe3075059b31f7
tree2bddbbdae2aa3406b644988bec7b029ea5ef0e8d
parent62055b0618fafb4747e783ba3fedd7bc7d57d27d
When comparing Objective-C pointers during overload resolution to
determine which is a better conversion to "void*", be sure to perform
the comparison using the safe-for-id
ASTContext::canAssignObjCInterfaces() rather than the asserts-with-id
ASTContext::canAssignObjCInterfaces().

Fixes <rdar://problem/9327203>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130259 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/SemaObjCXX/overload.mm