[Flang] Fix compilation on MinGW-w64

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D94707
This commit is contained in:
Mehdi Chinoune 2021-02-17 21:45:29 -06:00 committed by Michael Kruse
parent a0c9ec1f5e
commit 8cfe9c02a0
2 changed files with 2 additions and 2 deletions

View File

@ -14,12 +14,12 @@
#include <cstring>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/stat.h>
#ifdef _WIN32
#define NOMINMAX
#include <io.h>
#include <windows.h>
#else
#include <sys/stat.h>
#include <unistd.h>
#endif

View File

@ -131,7 +131,7 @@ int main(int argc_, const char **argv_) {
// information if possible.
isCrash = CommandRes < 0;
#ifdef _WIN32
IsCrash |= CommandRes == 3;
isCrash |= CommandRes == 3;
#endif
if (isCrash) {
theDriver.generateCompilationDiagnostics(*c, *failingCommand);