[clang] [clang][repl] fix `new` on Mac M1 (PR #69072)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 14 15:15:43 PDT 2023
================
@@ -248,7 +248,7 @@ Interpreter::~Interpreter() {
// can't find the precise resource directory in unittests so we have to hard
// code them.
const char *const Runtimes = R"(
- void* operator new(__SIZE_TYPE__, void* __p) noexcept;
+ #include <new>
----------------
vgvassilev wrote:
```suggestion
```
I'd prefer to drop it for now. We cannot really re-declare the operator new with placement in a platform independent way. We cannot really rely on including `<new>` because it won't work across our build bots.
https://github.com/llvm/llvm-project/pull/69072
More information about the cfe-commits
mailing list