[libunwind] Use __builtin_alloca to avoid missing include

Differential Revision: https://reviews.llvm.org/D149635
This commit is contained in:
Reagan Bohan 2023-09-11 17:36:25 -04:00 committed by Louis Dionne
parent c46d732fd7
commit 3f6818bf44

View File

@ -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)