[Mlir-commits] [mlir] a36aca5 - [mlir] Avoid including <alloca.h> on OpenBSD
Brad Smith
llvmlistbot at llvm.org
Tue Oct 26 17:06:42 PDT 2021
Author: Brad Smith
Date: 2021-10-26T20:06:27-04:00
New Revision: a36aca5d483a6db3136a8932633a4504dcd8d393
URL: https://github.com/llvm/llvm-project/commit/a36aca5d483a6db3136a8932633a4504dcd8d393
DIFF: https://github.com/llvm/llvm-project/commit/a36aca5d483a6db3136a8932633a4504dcd8d393.diff
LOG: [mlir] Avoid including <alloca.h> on OpenBSD
Added:
Modified:
mlir/lib/ExecutionEngine/CRunnerUtils.cpp
Removed:
################################################################################
diff --git a/mlir/lib/ExecutionEngine/CRunnerUtils.cpp b/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
index 9b22a188eb5c3..889d8c76964d7 100644
--- a/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
+++ b/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
@@ -15,7 +15,7 @@
#include "mlir/ExecutionEngine/CRunnerUtils.h"
#ifndef _WIN32
-#if defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#include <cstdlib>
#else
#include <alloca.h>
More information about the Mlir-commits
mailing list