[llvm] r237072 - Fixing memory leak
Andrew Kaylor
andrew.kaylor at intel.com
Mon May 11 17:13:52 PDT 2015
Author: akaylor
Date: Mon May 11 19:13:51 2015
New Revision: 237072
URL: http://llvm.org/viewvc/llvm-project?rev=237072&view=rev
Log:
Fixing memory leak
Modified:
llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
Modified: llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/WinEHPrepare.cpp?rev=237072&r1=237071&r2=237072&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/WinEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/WinEHPrepare.cpp Mon May 11 19:13:51 2015
@@ -882,7 +882,9 @@ bool WinEHPrepare::prepareExceptionHandl
Function *Handler = cast<Function>(CA->getHandlerBlockOrFunc());
getPossibleReturnTargets(&F, Handler, ReturnTargets);
}
+ delete Action;
}
+ ActionList.clear();
for (BasicBlock *Target : ReturnTargets) {
Branch->addDestination(Target);
// The target may be a block that we excepted to get pruned.
More information about the llvm-commits
mailing list