Skip to content

Commit 5773b3c

Browse files
committed
[CHERI] Fix LLP64 detection.
Technically CHERIoT is LLP64 but... no.
1 parent 8c694b1 commit 5773b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/builtins/fp_compare_impl.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifdef __aarch64__
1616
// AArch64 GCC overrides libgcc_cmp_return to use int instead of long.
1717
typedef int CMP_RESULT;
18-
#elif __SIZEOF_POINTER__ == 8 && __SIZEOF_LONG__ == 4
18+
#elif __SIZEOF_POINTER__ == 8 && __SIZEOF_LONG__ == 4 && !defined(__CHERI__)
1919
// LLP64 ABIs use long long instead of long.
2020
typedef long long CMP_RESULT;
2121
#elif __AVR__

0 commit comments

Comments
 (0)