diff options
| author | Mircea Trofin <mtrofin@google.com> | 2021-12-10 20:59:24 -0800 |
|---|---|---|
| committer | Mircea Trofin <mtrofin@google.com> | 2021-12-13 10:08:39 -0800 |
| commit | 4fed39ddee4dbc23df7317a3fe311a56a9e423b5 (patch) | |
| tree | 68f025df1b0648e2ac9e847706cc25b97b8f5b25 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | fe1b5b56c65225d54d5319d912a724df58c050d3 (diff) | |
[ThinLTO] Fix nondeterministic exit on error.
In the multi-threaded case, if a thread hits an error, we mimick
LLVMContext's behavior of reporting the error and exit-ing. However,
this doesn't cleanly join the other threads, so depending on how fast
the process exits, other threads may report 'terminate called without an
active exception'.
To avoid this non-determinsim, and without introducing a more complicated
design, we just report the error, but not exit early. We do track whether
we hit errors and exit(1) after joining.
Differential Revision: https://reviews.llvm.org/D115574
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
