Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit f3b4aeb

Browse files
committed
[libcxxabi] Define _LIBCXXABI_GUARD_ABI_ARM on WebAssembly
This matches ItaniumCXXABI.cpp. Fixes PR42680 Differential Revision: https://reviews.llvm.org/D64961 git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@368783 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent bb31674 commit f3b4aeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/__cxxabi_config.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
#define _LIBCXXABI_NO_CFI
7272
#endif
7373

74-
#if defined(__arm__)
74+
// wasm32 follows the arm32 ABI convention of using 32-bit guard.
75+
#if defined(__arm__) || defined(__wasm32__)
7576
# define _LIBCXXABI_GUARD_ABI_ARM
7677
#endif
7778

0 commit comments

Comments
 (0)