[PATCH] D156618: [IR] Fix a memory leak in Function::dropAllReferences()

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 30 19:54:17 PDT 2023


MaskRay added a comment.

> This patch fixes a memory leak in Function::dropAllReferences().

Consider `This patch fixes a memory leak if Function::dropAllReferences() is followed by setHungoffOperand (e.g. setPersonality)`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156618/new/

https://reviews.llvm.org/D156618



More information about the llvm-commits mailing list