Skip to content

Commit 3f738a4

Browse files
wrotkiMariusz Borsa
andauthored
[Sanitizers][ABI] Remove too strong assert in asan_abi_shim (llvm#81696)
Recently we enabled building the shim for arm64_32 arch. On this arch, sizeof(uptr) == sizeof(unsigned long) == 4 - so this assert will fail in runtime. Need to just remove this assert rdar://122927166 Co-authored-by: Mariusz Borsa <[email protected]>
1 parent ec5f4a4 commit 3f738a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/asan_abi/asan_abi_shim.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void *__asan_memmove(void *dest, const void *src, uptr n) {
5454

5555
// Functions concerning RTL startup and initialization
5656
void __asan_init(void) {
57-
static_assert(sizeof(uptr) == 8);
57+
static_assert(sizeof(uptr) == 8 || sizeof(uptr) == 4);
5858
static_assert(sizeof(u64) == 8);
5959
static_assert(sizeof(u32) == 4);
6060

0 commit comments

Comments
 (0)