[polly] r285924 - [ScopInfo] Fix isl object leak.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 3 08:19:41 PDT 2016
Author: meinersbur
Date: Thu Nov 3 10:19:41 2016
New Revision: 285924
URL: http://llvm.org/viewvc/llvm-project?rev=285924&view=rev
Log:
[ScopInfo] Fix isl object leak.
Fix return from function without releasing isl objects, which was introduced
in r269055.
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=285924&r1=285923&r2=285924&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Thu Nov 3 10:19:41 2016
@@ -2798,8 +2798,11 @@ bool Scop::addLoopBoundsToHeaderDomain(L
SmallVector<isl_set *, 8> ConditionSets;
int idx = BI->getSuccessor(0) != HeaderBB;
if (!buildConditionSets(*getStmtFor(LatchBB), TI, L, LatchBBDom,
- ConditionSets))
+ ConditionSets)) {
+ isl_map_free(NextIterationMap);
+ isl_set_free(UnionBackedgeCondition);
return false;
+ }
// Free the non back edge condition set as we do not need it.
isl_set_free(ConditionSets[1 - idx]);
More information about the llvm-commits
mailing list