Skip to content

Commit 3f6818b

Browse files
xbjfkldionne
authored andcommittedSep 12, 2023
[libunwind] Use __builtin_alloca to avoid missing include
Differential Revision: https://reviews.llvm.org/D149635
1 parent c46d732 commit 3f6818b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎libunwind/src/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
#if defined(_LIBUNWIND_REMEMBER_STACK_ALLOC) || defined(__APPLE__) || \
128128
defined(__linux__) || defined(__ANDROID__) || defined(__MINGW32__) || \
129129
defined(_LIBUNWIND_IS_BAREMETAL)
130-
#define _LIBUNWIND_REMEMBER_ALLOC(_size) alloca(_size)
130+
#define _LIBUNWIND_REMEMBER_ALLOC(_size) __builtin_alloca(_size)
131131
#define _LIBUNWIND_REMEMBER_FREE(_ptr) \
132132
do { \
133133
} while (0)

0 commit comments

Comments
 (0)
Please sign in to comment.