[polly] r248684 - [NFC] Use releaseMemory to release internal memory
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 27 08:42:30 PDT 2015
Author: jdoerfert
Date: Sun Sep 27 10:42:28 2015
New Revision: 248684
URL: http://llvm.org/viewvc/llvm-project?rev=248684&view=rev
Log:
[NFC] Use releaseMemory to release internal memory
Modified:
polly/trunk/lib/Transform/ScheduleOptimizer.cpp
Modified: polly/trunk/lib/Transform/ScheduleOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/ScheduleOptimizer.cpp?rev=248684&r1=248683&r2=248684&view=diff
==============================================================================
--- polly/trunk/lib/Transform/ScheduleOptimizer.cpp (original)
+++ polly/trunk/lib/Transform/ScheduleOptimizer.cpp Sun Sep 27 10:42:28 2015
@@ -335,12 +335,10 @@ public:
private:
isl_schedule *LastSchedule;
- using llvm::Pass::doFinalization;
-
- virtual bool doFinalization() override {
+ /// @brief Release the internal memory.
+ void releaseMemory() override {
isl_schedule_free(LastSchedule);
LastSchedule = nullptr;
- return true;
}
};
}
More information about the llvm-commits
mailing list