aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/FileManager.cpp
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2024-01-21 03:00:38 +0200
committerGitHub <noreply@github.com>2024-01-20 17:00:38 -0800
commit2759e47067ea286f6302adcfe93b653cfaf6f2eb (patch)
tree47c3b71d578e0299bd09aee75397a1b550480f62 /clang/lib/Basic/FileManager.cpp
parentdedc7d4d362b8045c6810f8ca7f947bbdb63b7ec (diff)
downloadllvm-2759e47067ea286f6302adcfe93b653cfaf6f2eb.zip
llvm-2759e47067ea286f6302adcfe93b653cfaf6f2eb.tar.gz
llvm-2759e47067ea286f6302adcfe93b653cfaf6f2eb.tar.bz2
[clang-repl] We do not need to call new in the object allocation. (#78843)
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 llvm/llvm-project#76218.
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions