[Mlir-commits] [mlir] e6450d8 - [mlir][llvm] Fix windows build
Stephan Herhut
llvmlistbot at llvm.org
Mon Jun 28 09:22:39 PDT 2021
Author: Stephan Herhut
Date: 2021-06-28T18:22:21+02:00
New Revision: e6450d88e2801373d198bd63af547dbc0a096334
URL: https://github.com/llvm/llvm-project/commit/e6450d88e2801373d198bd63af547dbc0a096334
DIFF: https://github.com/llvm/llvm-project/commit/e6450d88e2801373d198bd63af547dbc0a096334.diff
LOG: [mlir][llvm] Fix windows build
Gate the include of alloca.h behind _WIN32 guard.
Differential Revision: https://reviews.llvm.org/D105036
Added:
Modified:
mlir/lib/ExecutionEngine/CRunnerUtils.cpp
Removed:
################################################################################
diff --git a/mlir/lib/ExecutionEngine/CRunnerUtils.cpp b/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
index e5b682a7b6de..4677098d64f3 100644
--- a/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
+++ b/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
@@ -15,7 +15,10 @@
#include "mlir/ExecutionEngine/CRunnerUtils.h"
#ifndef _WIN32
+#include <alloca.h>
#include <sys/time.h>
+#else
+#include "malloc.h"
#endif // _WIN32
#include <cinttypes>
More information about the Mlir-commits
mailing list