[mlir][llvm] Fix windows build
authorStephan Herhut <herhut@google.com>
Mon, 28 Jun 2021 15:31:01 +0000 (17:31 +0200)
committerStephan Herhut <herhut@google.com>
Mon, 28 Jun 2021 16:22:21 +0000 (18:22 +0200)
Gate the include of alloca.h behind _WIN32 guard.

Differential Revision: https://reviews.llvm.org/D105036

mlir/lib/ExecutionEngine/CRunnerUtils.cpp

index e5b682a..4677098 100644 (file)
 #include "mlir/ExecutionEngine/CRunnerUtils.h"
 
 #ifndef _WIN32
+#include <alloca.h>
 #include <sys/time.h>
+#else
+#include "malloc.h"
 #endif // _WIN32
 
 #include <cinttypes>