summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-04-14 15:11:46 +0000
committerSteve Naroff <snaroff@apple.com>2009-04-14 15:11:46 +0000
commit06f440dd7b00ef8970242bcc9de79d223c35075e (patch)
tree97f61293d2b40b95ec5f66e60d5abd8c811e2545 /clang/lib/CodeGen/CodeGenModule.cpp
parent389325715b3b63f0a6080489a48111960b172d2b (diff)
downloadbcm5719-llvm-06f440dd7b00ef8970242bcc9de79d223c35075e.tar.gz
bcm5719-llvm-06f440dd7b00ef8970242bcc9de79d223c35075e.zip
ASTContext::mergeTypes(): Loosen up the type checking for 'Class' (treating it like 'id').
This fixes <rdar://problem/6782722> XCDataTipsManager.m registers, observes notifications in class methods. The radar above is the result of clang typing 'self' in a class method as 'Class', which results in some spurious warnings (GCC types 'self' in a class method as 'id'). I considered changing the type of 'self' to 'id' (to conform to GCC), however this resulted in *many* test cases breaking. In addition, I really prefer a more strongly typed 'self'. All in all, this is the least obtrusive fix I could find for removing the spurious warnings (though we do loose some valid warnings). llvm-svn: 69041
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud