Skip to content
Snippets Groups Projects
Commit 2ab55765 authored by Mike Stump's avatar Mike Stump
Browse files

Disable for now, doesn't play nice with the temporary code.

llvm-svn: 90537
parent b05eb963
No related branches found
No related tags found
No related merge requests found
......@@ -134,9 +134,12 @@ static void CopyObject(CodeGenFunction &CGF, const Expr *E, llvm::Value *N) {
} else if (CXXConstructorDecl *CopyCtor
= RD->getCopyConstructor(CGF.getContext(), 0)) {
// All temporaries end before we call __cxa_throw
CodeGenFunction::CleanupScope TryScope(CGF);
// FIXME: Doesn't work well with eh31.C and PopCXXTemporary
// CodeGenFunction::CleanupScope TryScope(CGF);
{
// These actions are only on the exceptional edge.
#if 0
// FIXME: Doesn't work well with eh31.C and PopCXXTemporary
CodeGenFunction::DelayedCleanupBlock Scope(CGF, true);
llvm::Constant *FreeExceptionFn = getFreeExceptionFn(CGF);
......@@ -144,6 +147,7 @@ static void CopyObject(CodeGenFunction &CGF, const Expr *E, llvm::Value *N) {
= llvm::Type::getInt8PtrTy(CGF.getLLVMContext());
llvm::Value *ExceptionPtr = CGF.Builder.CreateBitCast(N, Int8PtrTy);
CGF.Builder.CreateCall(FreeExceptionFn, ExceptionPtr);
#endif
}
llvm::Value *Src = CGF.EmitLValue(E).getAddress();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment