llvm-project
2495d820 - [orc-rt] Add ORC_RT_HAS_BUILTIN, stop defining __has_builtin (#220503)

Commit
9 hours ago
[orc-rt] Add ORC_RT_HAS_BUILTIN, stop defining __has_builtin (#220503) orc-rt/support/Compiler.h supplied a fallback definition of __has_builtin for compilers that lack it. __has_builtin is a reserved identifier, and defining one from a public header can collide with the compiler's own definition or with another library the client includes. Replace it with ORC_RT_HAS_BUILTIN(X) in orc-rt-c/support/Compiler.h, which wraps __has_builtin where it exists and expands to 0 otherwise, and convert the five uses.
Author
Parents
Loading