Revert r116656, "IRgen/Obj-C/NeXT: Fix the IR signature for

objc_exception_rethrow, so we don't...", since something is actually trying to
call this with the wrong signature (!). Unfortunately I don't understand the new
EH infrastructure well enough to fix it immediately.

llvm-svn: 116660
This commit is contained in:
Daniel Dunbar
2010-10-16 05:04:10 +00:00
parent 4d99878a37
commit 622581b73b
2 changed files with 1 additions and 15 deletions

View File

@@ -462,7 +462,7 @@ public:
// void objc_exception_rethrow(void)
std::vector<const llvm::Type*> Args;
llvm::FunctionType *FTy =
llvm::FunctionType::get(llvm::Type::getVoidTy(VMContext), Args, false);
llvm::FunctionType::get(llvm::Type::getVoidTy(VMContext), Args, true);
return CGM.CreateRuntimeFunction(FTy, "objc_exception_rethrow");
}

View File

@@ -1,14 +0,0 @@
// Check method signatures for synthesized runtime functions.
//
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 \
// RUN: -fexceptions -fobjc-nonfragile-abi2 -emit-llvm -o %t %s
// RUN: FileCheck < %t %s
// CHECK: declare void @objc_exception_rethrow()
void f1(void);
void f0() {
@try {
f1();
} @finally {
}
}