Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clang-repl] We do not need to call new in the object allocation. (#7…
…8843) This test demonstrates template instantiation via the interpreter code. In order to do that we can allocate the object on the stack and extend its lifetime by boxing it into a clang::Value. That avoids the subtle problem where we call the new operator on an object only known to the interpreter and we cannot destroy it from compiled code since there is not suitable facility in clang::Value yet. That should resolve the asan issues that was reported in #76218.
- Loading branch information