aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/FileManager.cpp
diff options
context:
space:
mode:
authorMitch Phillips <31459023+hctim@users.noreply.github.com>2021-07-08 13:06:34 -0700
committerMitch Phillips <31459023+hctim@users.noreply.github.com>2021-07-08 13:06:42 -0700
commitd458f379324967c3c408be06e21aad9bc92c54cb (patch)
tree8390b96224088ed416a1f97174b6340d7dd66c7f /clang/lib/Basic/FileManager.cpp
parent915e07605cd5db58db2ea9dd0d2a0a921206d01e (diff)
downloadllvm-d458f379324967c3c408be06e21aad9bc92c54cb.zip
llvm-d458f379324967c3c408be06e21aad9bc92c54cb.tar.gz
llvm-d458f379324967c3c408be06e21aad9bc92c54cb.tar.bz2
[GWP-ASan] Change unreachable -> trap to work around DCE bug.
trapOnAddress is designed to SEGV on a specific address. Unfortunately, with an IR change, __builtin_unreachable() ends up doing DCE on things that have side effects, like the load that causes the trap. Change to __builtin_trap() to avoid the optimisation. Root cause is still an LLVM bug, and tracked in https://bugs.llvm.org/show_bug.cgi?id=47480. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D105654
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions