summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-02-12 17:52:19 +0000
committerSteve Naroff <snaroff@apple.com>2009-02-12 17:52:19 +0000
commitb76051534ce32aca680c51ea43e2d67cba2e2851 (patch)
tree80ebd09557964d40ad456c14f78bf34360dfd189 /clang/lib/CodeGen
parent844deb73f4b773c919a7a2f8e8ce5c45052aa5e4 (diff)
downloadbcm5719-llvm-b76051534ce32aca680c51ea43e2d67cba2e2851.tar.gz
bcm5719-llvm-b76051534ce32aca680c51ea43e2d67cba2e2851.zip
Several cleanups:
- rename isObjCIdType/isObjCClassType -> isObjCIdStructType/isObjCClassStructType. The previous name didn't do what you would expect. - add back isObjCIdType/isObjCClassType to do what you would expect. Not currently used, however many of the isObjCIdStructType/isObjCClassStructType clients could be converted over time. - move static Sema function areComparableObjCInterfaces to ASTContext (renamed to areComparableObjCPointerTypes, since it now operates on pointer types). llvm-svn: 64385
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index f8d456c466b..5286593ac4c 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/lib/CodeGen/CGObjCMac.cpp
@@ -1970,7 +1970,7 @@ void CGObjCMac::EmitTryOrSynchronizedStmt(CodeGen::CodeGenFunction &CGF,
// catch(id e) always matches.
// FIXME: For the time being we also match id<X>; this should
// be rejected by Sema instead.
- if ((PT && CGF.getContext().isObjCIdType(PT->getPointeeType())) ||
+ if ((PT && CGF.getContext().isObjCIdStructType(PT->getPointeeType())) ||
VD->getType()->isObjCQualifiedIdType())
AllMatched = true;
}
OpenPOWER on IntegriCloud