[PATCH] D125489: [Metadata][NFC] Refactor allocation, initialization, and deletion of MDNodes

Duncan P. N. Exon Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 12 15:22:07 PDT 2022


dexonsmith accepted this revision.
dexonsmith added a comment.
This revision is now accepted and ready to land.

LGTM! Thanks for splitting this out (and fixing the MSan problem properly!).



================
Comment at: llvm/lib/IR/Metadata.cpp:538-539
 
-// Repress memory sanitization, due to use-after-destroy by operator
-// delete. Bug report 24578 identifies this issue.
-LLVM_NO_SANITIZE_MEMORY_ATTRIBUTE void MDNode::operator delete(void *Mem) {
----------------
For reference, I dug this up as https://github.com/llvm/llvm-project/issues/24952.


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

https://reviews.llvm.org/D125489



More information about the llvm-commits mailing list