[polly] a8cbddc - [CodeGen] Fix a memory leak

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 24 19:51:21 PST 2021


Author: Kazu Hirata
Date: 2021-12-24T19:51:10-08:00
New Revision: a8cbddc99411f9734958f974263aed7bf0113ec9

URL: https://github.com/llvm/llvm-project/commit/a8cbddc99411f9734958f974263aed7bf0113ec9
DIFF: https://github.com/llvm/llvm-project/commit/a8cbddc99411f9734958f974263aed7bf0113ec9.diff

LOG: [CodeGen] Fix a memory leak

Added: 
    

Modified: 
    polly/lib/CodeGen/IslAst.cpp

Removed: 
    


################################################################################
diff  --git a/polly/lib/CodeGen/IslAst.cpp b/polly/lib/CodeGen/IslAst.cpp
index ab0bcdaf8ef5f..6497275df6101 100644
--- a/polly/lib/CodeGen/IslAst.cpp
+++ b/polly/lib/CodeGen/IslAst.cpp
@@ -671,7 +671,7 @@ IslAstInfo IslAstAnalysis::run(Scop &S, ScopAnalysisManager &SAM,
     return SAM.getResult<DependenceAnalysis>(S, SAR).getDependences(Lvl);
   };
 
-  return std::move(*runIslAst(S, GetDeps).release());
+  return std::move(*runIslAst(S, GetDeps));
 }
 
 static __isl_give isl_printer *cbPrintUser(__isl_take isl_printer *P,


        


More information about the llvm-commits mailing list