[llvm-branch-commits] [clang] [LifetimeSafety] Support allocating/freeing builtins (PR #213443)
Balázs Benics via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Nov 6 07:56:02 PST 2026
================
@@ -363,6 +363,11 @@ void *operator new(std::size_t, const std::nothrow_t &) noexcept;
void *operator new(std::size_t, std::align_val_t,
const std::nothrow_t &) noexcept;
+extern "C" void *malloc(std::size_t);
+extern "C" void free(void *);
+extern "C" void *calloc(std::size_t, std::size_t);
----------------
steakhal wrote:
Now that we add this declaration, I think we should also add a test referencing it.
https://github.com/llvm/llvm-project/pull/213443
More information about the llvm-branch-commits
mailing list