aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2020-11-02 17:33:07 +0000
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2020-11-02 17:52:37 +0000
commit5bc438efcf96c9ef83312c37674b03e98259a22b (patch)
treeb254a7bfdaa61698f6c30a53ba433f6bd7a97fa7 /clang/lib/Basic/Module.cpp
parent2e2be3d964fb8f5a70faff1edbca4598bbb6ea94 (diff)
downloadllvm-5bc438efcf96c9ef83312c37674b03e98259a22b.zip
llvm-5bc438efcf96c9ef83312c37674b03e98259a22b.tar.gz
llvm-5bc438efcf96c9ef83312c37674b03e98259a22b.tar.bz2
[AtomicExpand] Avoid creating an unnamed libcall
I recently modified this pass to better support CHERI-RISC-V and while doing so I noticed that this pass was calling M->getOrInsertFunction() with the result of TLI->getLibcallName(RTLibType). However, AMDGPU fills the libcalls array with nullptr, so this creates an anonymous function instead. This patch changes expandAtomicOpToLibcall to return false in case the libcall does not exist and changes the assert() in the callees to a report_fatal_error() instead. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D88800
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions