Skip to content

Commit a0f4484

Browse files
committed
RequirementMachine: Don't forget to delete requirement machines when freeing the RewriteContext
1 parent 46063d3 commit a0f4484

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/AST/RequirementMachine/RewriteContext.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,4 +397,9 @@ RewriteContext::~RewriteContext() {
397397
llvm::dbgs() << "\n* Property trie root fanout:\n";
398398
PropertyTrieRootHistogram.dump(llvm::dbgs());
399399
}
400+
401+
for (const auto &pair : Machines)
402+
delete pair.second;
403+
404+
Machines.clear();
400405
}

0 commit comments

Comments
 (0)