llvm.org GIT mirror llvm / 0bd34e6
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257384 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 3 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
404404 // If we cannot load up the APIs (which would be unexpected as they should
405405 // exist on every version of Windows we support), we will bail out since
406406 // there would be nothing to report.
407 assert(load64BitDebugHelp() && "These APIs should always be available");
407 if (!load64BitDebugHelp()) {
408 assert(false && "These APIs should always be available");
409 return;
410 }
408411
409412 if (RegisteredUnhandledExceptionFilter) {
410413 EnterCriticalSection(&CriticalSection);