]> granicus.if.org Git - clang/commit
This fixes <rdar://problem/6497650> More type mismatches issues with clang.
authorSteve Naroff <snaroff@apple.com>
Sat, 21 Feb 2009 16:18:07 +0000 (16:18 +0000)
committerSteve Naroff <snaroff@apple.com>
Sat, 21 Feb 2009 16:18:07 +0000 (16:18 +0000)
commit5fd659db11922fc12a58e478f7b745f9656b15a7
tree55186a42a366cafe982b13aafc57c8f4566b5ccc
parent67b81e77926cf30a6578b4a740ea88d425b8697f
This fixes <rdar://problem/6497650> More type mismatches issues with clang.

Move two key ObjC typechecks from Sema::CheckPointerTypesForAssignment() to ASTContext::mergeTypes().

This allows us to take advantage of the recursion in ASTContext::mergeTypes(), removing some bogus warnings.

This test case I've added includes an example where we still warn (and GCC doesn't). Need to talk with folks and decide what to do. At this point, the major bogosities should be fixed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65231 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
lib/Sema/SemaExpr.cpp
test/SemaObjC/comptypes-legal.m [new file with mode: 0644]