summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-12-04 03:55:53 +0000
committerMike Stump <mrs@apple.com>2009-12-04 03:55:53 +0000
commit2ab55765f7bdd91263252c7b2945b50d666b0b8d (patch)
treef64240bf1fb9f5d5f954d08dfb103b4955790648
parentb05eb963e08860575096fafd8f3b055bf853ded9 (diff)
downloadbcm5719-llvm-2ab55765f7bdd91263252c7b2945b50d666b0b8d.tar.gz
bcm5719-llvm-2ab55765f7bdd91263252c7b2945b50d666b0b8d.zip
Disable for now, doesn't play nice with the temporary code.
llvm-svn: 90537
-rw-r--r--clang/lib/CodeGen/CGException.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index d7149110543..5f54935361c 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/lib/CodeGen/CGException.cpp
@@ -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();
OpenPOWER on IntegriCloud