[PATCH] D123088: attributes: introduce allockind attr for describing allocator fn behavior

Ayke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 12 03:50:45 PDT 2022


aykevl added a comment.

Not a real review but I found this which looks like a bug.



================
Comment at: llvm/lib/AsmParser/LLParser.cpp:2061-2062
+      Kind |= AllocFnKind::New;
+    } else if (A == "resize") {
+      Kind |= AllocFnKind::Free;
+    } else if (A == "free") {
----------------
This looks incorrect to me.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123088



More information about the llvm-commits mailing list