[cfe-commits] r72831 - /cfe/trunk/lib/CodeGen/CGCXXTemp.cpp
Anders Carlsson
andersca at mac.com
Wed Jun 3 19:08:17 PDT 2009
Author: andersca
Date: Wed Jun 3 21:08:08 2009
New Revision: 72831
URL: http://llvm.org/viewvc/llvm-project?rev=72831&view=rev
Log:
Make sure to push a cleanup block.
Modified:
cfe/trunk/lib/CodeGen/CGCXXTemp.cpp
Modified: cfe/trunk/lib/CodeGen/CGCXXTemp.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXXTemp.cpp?rev=72831&r1=72830&r2=72831&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXXTemp.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXXTemp.cpp Wed Jun 3 21:08:08 2009
@@ -20,6 +20,8 @@
llvm::BasicBlock *DtorBlock = createBasicBlock("temp.dtor");
LiveTemporaries.push_back(CXXLiveTemporaryInfo(Temporary, Ptr, DtorBlock, 0));
+
+ PushCleanupBlock(DtorBlock);
}
void CodeGenFunction::PopCXXTemporary() {
More information about the cfe-commits
mailing list