]> granicus.if.org Git - clang/commitdiff
Fix stupid mistake I made in the exception handling code
authorAnders Carlsson <andersca@mac.com>
Thu, 11 Sep 2008 06:35:14 +0000 (06:35 +0000)
committerAnders Carlsson <andersca@mac.com>
Thu, 11 Sep 2008 06:35:14 +0000 (06:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56100 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCMac.cpp

index 42f8ef71dee3a06da676dd3daab916e881fd910d..0134c70983876786ee4c122fe3d6fc6747b05240 100644 (file)
@@ -1467,7 +1467,7 @@ void CGObjCMac::EmitTryStmt(CodeGen::CodeGenFunction &CGF,
         break;
       }
       
-      const ObjCInterfaceType *ObjCType = T->getAsPointerToObjCInterfaceType();
+      const ObjCInterfaceType *ObjCType = T->getAsObjCInterfaceType();
       assert(ObjCType && "Catch parameter must have Objective-C type!");
 
       // Check if the @catch block matches the exception object.