Skip to content

Commit

Permalink
[libunwind] Use __builtin_alloca to avoid missing include
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D149635
  • Loading branch information
xbjfk authored and ldionne committed Sep 12, 2023
1 parent c46d732 commit 3f6818b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libunwind/src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
#if defined(_LIBUNWIND_REMEMBER_STACK_ALLOC) || defined(__APPLE__) || \
defined(__linux__) || defined(__ANDROID__) || defined(__MINGW32__) || \
defined(_LIBUNWIND_IS_BAREMETAL)
#define _LIBUNWIND_REMEMBER_ALLOC(_size) alloca(_size)
#define _LIBUNWIND_REMEMBER_ALLOC(_size) __builtin_alloca(_size)
#define _LIBUNWIND_REMEMBER_FREE(_ptr) \
do { \
} while (0)
Expand Down

0 comments on commit 3f6818b

Please sign in to comment.