Alloa catching Objective-C id's being thrown with C++ throw
in Darwin's fragile abi mode. // rdar://8940528 llvm-svn: 133639
This commit is contained in:
@@ -521,7 +521,7 @@ void CodeGenFunction::EnterCXXTryStmt(const CXXTryStmt &S, bool IsFnTryBlock) {
|
||||
|
||||
llvm::Value *TypeInfo = 0;
|
||||
if (CaughtType->isObjCObjectPointerType())
|
||||
TypeInfo = CGM.getObjCRuntime().GetEHType(CaughtType);
|
||||
TypeInfo = CGM.getObjCRuntime().GetEHType(CaughtType, this);
|
||||
else
|
||||
TypeInfo = CGM.GetAddrOfRTTIDescriptor(CaughtType, /*ForEH=*/true);
|
||||
CatchScope->setHandler(I, TypeInfo, Handler);
|
||||
|
||||
Reference in New Issue
Block a user