[llvm] [SPIRV] Fix code quality issues. (PR #152005)
    Nathan Gauër via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Aug  5 08:36:08 PDT 2025
    
    
  
================
@@ -73,7 +73,12 @@ class ConvergenceRegion {
         Entry(std::move(CR.Entry)), Exits(std::move(CR.Exits)),
         Blocks(std::move(CR.Blocks)) {}
 
+  // Destructor.
+  ~ConvergenceRegion() { releaseMemory(); }
----------------
Keenuts wrote:
Do you have the trace causing the leak? Because if each ConvergenceRegionInfo is correctly destroyed, we shouldn't (since move ctor/operator makes sure we don't re-allocate)
https://github.com/llvm/llvm-project/pull/152005
    
    
More information about the llvm-commits
mailing list