diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc index 4bf699f2bccf0..cb82f55fc38be 100644 --- a/llvm/lib/Support/Windows/Signals.inc +++ b/llvm/lib/Support/Windows/Signals.inc @@ -830,7 +830,7 @@ void sys::CleanupOnSignal(uintptr_t Context) { // // 0xE0000000 is combined with the return code in the exception raised in // CrashRecoveryContext::HandleExit(). - int RetCode = (int)EP->ExceptionRecord->ExceptionCode; + unsigned RetCode = EP->ExceptionRecord->ExceptionCode; if (RetCode == (0xE0000000 | EX_IOERR)) return; LLVMUnhandledExceptionFilter(EP);