[PATCH] D90615: [libunwind] Add missing #include <alloca.h>
Mikhail Maltsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 2 07:52:26 PST 2020
miyuki created this revision.
miyuki added reviewers: mstorsjo, danielkiss.
Herald added projects: LLVM, libunwind.
Herald added subscribers: libcxx-commits, llvm-commits.
Herald added a reviewer: libunwind.
miyuki requested review of this revision.
The macro/function `alloca()` is declared in `<alloca.h>` and in our
configuration it does not get included transitively from other
headers.
This patch adds `#include <alloca.h>` when `alloca()` is used.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90615
Files:
libunwind/src/config.h
Index: libunwind/src/config.h
===================================================================
--- libunwind/src/config.h
+++ libunwind/src/config.h
@@ -124,6 +124,7 @@
#if defined(_LIBUNWIND_REMEMBER_STACK_ALLOC) || defined(__APPLE__) || \
defined(__linux__) || defined(__ANDROID__) || defined(__MINGW32__) || \
defined(_LIBUNWIND_IS_BAREMETAL)
+#include <alloca.h>
#define _LIBUNWIND_REMEMBER_ALLOC(_size) alloca(_size)
#define _LIBUNWIND_REMEMBER_FREE(_ptr) \
do { \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90615.302282.patch
Type: text/x-patch
Size: 615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201102/c9e52c7a/attachment.bin>
More information about the llvm-commits
mailing list