Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ORC-RT] Silence warning when building with Clang ToT on Windows
This fixes several of these: ``` [3524/7446] Building CXX object projects\compiler-rt\lib\orc\CMakeFiles\RTOrc.x86_64.dir\dlfcn_wrapper.cpp.obj In file included from C:\git\llvm-project\compiler-rt\lib\orc\dlfcn_wrapper.cpp:15: C:\git\llvm-project\compiler-rt\lib\orc\wrapper_function_utils.h(299,27): warning: address of '__orc_rt_jit_dispatch_ctx' will always evaluate to 'true' [-Wpointer-bool-conversion] 299 | if (ORC_RT_UNLIKELY(!&__orc_rt_jit_dispatch_ctx)) | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~ C:\git\llvm-project\compiler-rt\lib\orc\compiler.h(60,55): note: expanded from macro 'ORC_RT_UNLIKELY' 60 | #define ORC_RT_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false) | ^~~~ 1 warning generated. ```
- Loading branch information