[libunwind] [libunwind][WebAssembly] Fix libunwind.cpp guard (PR #78230)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 15 20:09:13 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libunwind
Author: Heejin Ahn (aheejin)
<details>
<summary>Changes</summary>
This should have been `&&`, meaning neither SjLj nor Wasm uses this file.
---
Full diff: https://github.com/llvm/llvm-project/pull/78230.diff
1 Files Affected:
- (modified) libunwind/src/libunwind.cpp (+2-2)
``````````diff
diff --git a/libunwind/src/libunwind.cpp b/libunwind/src/libunwind.cpp
index cd610377b63de8..f3c32762a5954b 100644
--- a/libunwind/src/libunwind.cpp
+++ b/libunwind/src/libunwind.cpp
@@ -26,7 +26,7 @@
#include <sanitizer/asan_interface.h>
#endif
-#if !defined(__USING_SJLJ_EXCEPTIONS__) || !defined(__USING_WASM_EXCEPTIONS__)
+#if !defined(__USING_SJLJ_EXCEPTIONS__) && !defined(__USING_WASM_EXCEPTIONS__)
#include "AddressSpace.hpp"
#include "UnwindCursor.hpp"
@@ -347,7 +347,7 @@ void __unw_remove_dynamic_eh_frame_section(unw_word_t eh_frame_start) {
}
#endif // defined(_LIBUNWIND_SUPPORT_DWARF_UNWIND)
-#endif // !defined(__USING_SJLJ_EXCEPTIONS__) ||
+#endif // !defined(__USING_SJLJ_EXCEPTIONS__) &&
// !defined(__USING_WASM_EXCEPTIONS__)
#ifdef __APPLE__
``````````
</details>
https://github.com/llvm/llvm-project/pull/78230
More information about the cfe-commits
mailing list