diff options
author | Alexandre Ganea <alex_toresh@yahoo.fr> | 2024-01-02 18:03:34 -0500 |
---|---|---|
committer | Alexandre Ganea <alex_toresh@yahoo.fr> | 2024-01-17 07:23:56 -0500 |
commit | 63a3c4cc85066a5fc44ae7f55d5b42a5708b9724 (patch) | |
tree | 75cc43446c5e4739ce28a6acf4917bea4f8caa60 /compiler-rt | |
parent | c5bbf40d9836409837696e4d60e94ed2ad3d6a32 (diff) | |
download | llvm-63a3c4cc85066a5fc44ae7f55d5b42a5708b9724.zip llvm-63a3c4cc85066a5fc44ae7f55d5b42a5708b9724.tar.gz llvm-63a3c4cc85066a5fc44ae7f55d5b42a5708b9724.tar.bz2 |
[compiler-rt] Silence warning with MSVC 19.38 (Visual Studio 2022 17.8.3)
This fixes:
```
C:\git\llvm-project\compiler-rt\lib\orc\coff_platform.cpp(512): warning C4189: 'JDState': local variable is initialized but not referenced
```
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/orc/coff_platform.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler-rt/lib/orc/coff_platform.cpp b/compiler-rt/lib/orc/coff_platform.cpp index 78c86c8..9fe5c0b 100644 --- a/compiler-rt/lib/orc/coff_platform.cpp +++ b/compiler-rt/lib/orc/coff_platform.cpp @@ -509,7 +509,6 @@ Error COFFPlatformRuntimeState::deregisterObjectSections( << HeaderAddr.getValue(); return make_error<StringError>(ErrStream.str()); } - auto &JDState = I->second; for (auto &KV : Secs) { if (auto Err = deregisterBlockRange(HeaderAddr, KV.second)) return Err; @@ -687,7 +686,14 @@ struct ThrowInfo { ORC_RT_INTERFACE void __stdcall __orc_rt_coff_cxx_throw_exception( void *pExceptionObject, ThrowInfo *pThrowInfo) { +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wmultichar" +#endif constexpr uint32_t EH_EXCEPTION_NUMBER = 'msc' | 0xE0000000; +#ifdef __clang__ +#pragma clang diagnostic pop +#endif constexpr uint32_t EH_MAGIC_NUMBER1 = 0x19930520; auto BaseAddr = COFFPlatformRuntimeState::get().findJITDylibBaseByPC( reinterpret_cast<uint64_t>(pThrowInfo)); |