mirror of
https://github.com/intel/llvm.git
synced 2026-02-04 19:44:15 +08:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user