[llvm] r234059 - Fixing a memory leak in WinEHPrepare
Andrew Kaylor
andrew.kaylor at intel.com
Fri Apr 3 14:44:17 PDT 2015
Author: akaylor
Date: Fri Apr 3 16:44:17 2015
New Revision: 234059
URL: http://llvm.org/viewvc/llvm-project?rev=234059&view=rev
Log:
Fixing a memory leak in WinEHPrepare
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=234059&r1=234058&r2=234059&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/WinEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/WinEHPrepare.cpp Fri Apr 3 16:44:17 2015
@@ -733,6 +733,8 @@ void WinEHPrepare::completeNestedLanding
ActionTargets.push_back(NewBA);
}
}
+ DeleteContainerPointers(ActionList);
+ ActionList.clear();
OutlinedBB->getInstList().push_back(EHActions);
// Insert an indirect branch into the outlined landing pad BB.
More information about the llvm-commits
mailing list