diff options
author | Nico Weber <thakis@chromium.org> | 2021-09-01 14:28:51 -0400 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2021-09-03 12:22:41 -0400 |
commit | c15b5888527bce7c794270d76484068ff3dc73a4 (patch) | |
tree | 5957a6b4de08869407adb7e79bc88a687d57fc9b /clang/unittests/Frontend/CompilerInvocationTest.cpp | |
parent | 75620fadf5c391b6450eb658dea6194167f522f7 (diff) | |
download | llvm-c15b5888527bce7c794270d76484068ff3dc73a4.zip llvm-c15b5888527bce7c794270d76484068ff3dc73a4.tar.gz llvm-c15b5888527bce7c794270d76484068ff3dc73a4.tar.bz2 |
[lld/mac] Don't assert during thunk insertion if there are undefined symbols
We end up calling resolveBranchVA(), which asserts for Undefineds.
As fix, just return early in Writer::run() if there are any diagnostics
after processing relocations (which is where undefined symbol errors are
emitted). This matches what the ELF port does.
Differential Revision: https://reviews.llvm.org/D109079
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions