From ea89e2b813ee6d29b69e9e820fd27eacc2e384c3 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Thu, 4 Jun 2009 02:08:08 +0000 Subject: [PATCH] Make sure to push a cleanup block. llvm-svn: 72831 --- clang/lib/CodeGen/CGCXXTemp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/lib/CodeGen/CGCXXTemp.cpp b/clang/lib/CodeGen/CGCXXTemp.cpp index d53a56fa2251..4e20b74ed599 100644 --- a/clang/lib/CodeGen/CGCXXTemp.cpp +++ b/clang/lib/CodeGen/CGCXXTemp.cpp @@ -20,6 +20,8 @@ void CodeGenFunction::PushCXXTemporary(const CXXTemporary *Temporary, llvm::BasicBlock *DtorBlock = createBasicBlock("temp.dtor"); LiveTemporaries.push_back(CXXLiveTemporaryInfo(Temporary, Ptr, DtorBlock, 0)); + + PushCleanupBlock(DtorBlock); } void CodeGenFunction::PopCXXTemporary() {