forked from OSchip/llvm-project
Revert "[Windows] Simplify assertion code. NFC."
This reverts commit r254363. load64BitDebugHelp() has the side effect of loading dbghelp and setting globals. It should be called in no-asserts builds as well as debug builds. llvm_unreachable is also not appropriate here, since we actually want to return if dbghelp couldn't be loaded in a non-asserts build. llvm-svn: 257384
This commit is contained in:
parent
dc78f95dc2
commit
6cdf844d75
|
@ -405,7 +405,10 @@ static void RegisterHandler() {
|
|||
// If we cannot load up the APIs (which would be unexpected as they should
|
||||
// exist on every version of Windows we support), we will bail out since
|
||||
// there would be nothing to report.
|
||||
assert(load64BitDebugHelp() && "These APIs should always be available");
|
||||
if (!load64BitDebugHelp()) {
|
||||
assert(false && "These APIs should always be available");
|
||||
return;
|
||||
}
|
||||
|
||||
if (RegisteredUnhandledExceptionFilter) {
|
||||
EnterCriticalSection(&CriticalSection);
|
||||
|
|
Loading…
Reference in New Issue