Skip to content

Commit eaeca66

Browse files
committed
Fix parse on non-Itanium platforms
1 parent 588aace commit eaeca66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libcxx/include/__memory/array_cookie.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_NO_SANITIZE("address") size_t __get_array_cookie([
113113
using _ArrayCookie = __arm_array_cookie<_Tp>;
114114
#else
115115
static_assert(false, "The array cookie layout is unknown on this ABI");
116+
struct _ArrayCookie { // dummy definition required to make the function parse
117+
size_t element_count;
118+
};
116119
#endif
117120

118121
char const* __allocation_start = reinterpret_cast<char const*>(__ptr) - sizeof(_ArrayCookie);

0 commit comments

Comments
 (0)