[compiler-rt] 57882fe - Fix "[compiler-rt] Allow 3 simultaneous interceptors on Linux"

Marco Elver via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 7 00:19:40 PDT 2023


Author: Marco Elver
Date: 2023-06-07T09:17:46+02:00
New Revision: 57882fe76e1826593cd0e53f73484b184c5007c4

URL: https://github.com/llvm/llvm-project/commit/57882fe76e1826593cd0e53f73484b184c5007c4
DIFF: https://github.com/llvm/llvm-project/commit/57882fe76e1826593cd0e53f73484b184c5007c4.diff

LOG: Fix "[compiler-rt] Allow 3 simultaneous interceptors on Linux"

No need to "error" on unsupported architectures, since we technically
only care where the macro is used. If the macro is undefined, and used,
the compiler will producer an error anyway.

This fixes build on Windows, where none of these macros should be used.

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_asm.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_asm.h b/compiler-rt/lib/sanitizer_common/sanitizer_asm.h
index 3615f69a25bb8..820c0567b321f 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_asm.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_asm.h
@@ -51,8 +51,6 @@
 # define ASM_TAIL_CALL jg
 #elif defined(__riscv)
 # define ASM_TAIL_CALL tail
-#else
-# error ASM_TAIL_CALL: Unimplemented architecture
 #endif
 
 #ifdef __ELF__


        


More information about the llvm-commits mailing list