aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorEvgenii Stepanov <eugeni.stepanov@gmail.com>2023-12-04 13:45:37 -0800
committerGitHub <noreply@github.com>2023-12-04 13:45:37 -0800
commit54c30953b9374e3bcc1c79b53a231e4b53ceafed (patch)
tree7f86cd61bbedf360223b23b09d5d2abb00760df0 /clang/lib/Frontend/CompilerInvocation.cpp
parente77bfaaf9d66748fc2dc3a710a0c9b4665dd3034 (diff)
downloadllvm-54c30953b9374e3bcc1c79b53a231e4b53ceafed.zip
llvm-54c30953b9374e3bcc1c79b53a231e4b53ceafed.tar.gz
llvm-54c30953b9374e3bcc1c79b53a231e4b53ceafed.tar.bz2
Do not initialize the allocator on free(nullptr). (#74366)
free(nullptr) is guaranteed by ISO and POSIX to be a no-op, we should not pay for the overhead of maybeInit() in this case. Additionally, Bionic calls free(nullptr) before the allocator settings are finalized. Scudo should not run allocator initialization at that time. Doing so causes various bad things to happen, like mapping primary regions with the wrong PROT_MTE setting.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions