[llvm-branch-commits] [mlir] ef50a36 - [mlir] Avoid including <alloca.h> on DragonFly
Tobias Hieta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Oct 23 23:31:31 PDT 2023
Author: Brad Smith
Date: 2023-10-24T08:25:58+02:00
New Revision: ef50a367e3d5ceaff7468d804987516a4520e9ac
URL: https://github.com/llvm/llvm-project/commit/ef50a367e3d5ceaff7468d804987516a4520e9ac
DIFF: https://github.com/llvm/llvm-project/commit/ef50a367e3d5ceaff7468d804987516a4520e9ac.diff
LOG: [mlir] Avoid including <alloca.h> on DragonFly
(cherry picked from commit a157a82b1e7a8d4be34cc862db4b42fa9db363d0)
Added:
Modified:
mlir/lib/ExecutionEngine/CRunnerUtils.cpp
Removed:
################################################################################
diff --git a/mlir/lib/ExecutionEngine/CRunnerUtils.cpp b/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
index 7f800e8ea96ff4f..c31ae3a1c7ce117 100644
--- a/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
+++ b/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
@@ -16,7 +16,8 @@
#include "mlir/ExecutionEngine/Msan.h"
#ifndef _WIN32
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
+ defined(__DragonFly__)
#include <cstdlib>
#else
#include <alloca.h>
More information about the llvm-branch-commits
mailing list