diff options
author | Steve Naroff <snaroff@apple.com> | 2009-02-12 17:52:19 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-02-12 17:52:19 +0000 |
commit | 389bf46ae41241a656ed71b00ac2177d7f385651 (patch) | |
tree | daeeca9857ded6eeed23fa266b3a2f3262095874 /lib/CodeGen/CGObjCMac.cpp | |
parent | 17f194f4393a67fd28ad822c06d32b8cb99bad3f (diff) |
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).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCMac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index f8d456c466..5286593ac4 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/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; } |