From 4b7ff6ebd7879ebf86cf6d0108d35d817135d513 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Thu, 11 Sep 2008 06:35:14 +0000 Subject: [PATCH] Fix stupid mistake I made in the exception handling code git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56100 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGObjCMac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index 42f8ef71de..0134c70983 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -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. -- 2.40.0