diff options
author | Reid Kleckner <rnk@google.com> | 2020-02-11 15:50:27 -0800 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2020-02-11 15:56:10 -0800 |
commit | a349c09162a8260bdf691c4f7ab72a16c33975f6 (patch) | |
tree | 4afd9c0d7ca971d50056f3f18fb3531b244ec63d /llvm/lib/Support/ErrorHandling.cpp | |
parent | 2d3ecade3892fb0d0713350e06522a94734733b7 (diff) | |
download | llvm-a349c09162a8260bdf691c4f7ab72a16c33975f6.zip llvm-a349c09162a8260bdf691c4f7ab72a16c33975f6.tar.gz llvm-a349c09162a8260bdf691c4f7ab72a16c33975f6.tar.bz2 |
Fix MSVC build with C++ EH enabled
Mark the CrashRecoveryContextImpl constructor noexcept, so that MSVC
won't emit an unwind helper to clean up the allocation from `new` if the
constructor throws an exception.
Otherwise, MSVC complains:
llvm\lib\Support\CrashRecoveryContext.cpp(220): error C2712: \
Cannot use __try in functions that require object unwinding
The other simple fix would be to wrap `new` in a static helper or
lambda.
Users have reported that Tensorflow builds LLVM with /EHsc.
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
0 files changed, 0 insertions, 0 deletions