Skip to content

Commit 4455390

Browse files
committed
JIT: Disable EH table on mingw/SEH
1 parent ebe22bd commit 4455390

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ExecutionEngine/JIT/JIT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ extern "C" void LLVMLinkInJIT() {
6969

7070
// Determine whether we can register EH tables.
7171
#if (defined(__GNUC__) && !defined(__ARM_EABI__) && \
72-
!defined(__USING_SJLJ_EXCEPTIONS__))
72+
!defined(__USING_SJLJ_EXCEPTIONS__)) && !defined(__SEH__)
7373
#define HAVE_EHTABLE_SUPPORT 1
7474
#else
7575
#define HAVE_EHTABLE_SUPPORT 0

lib/ExecutionEngine/MCJIT/SectionMemoryManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ bool SectionMemoryManager::applyPermissions(std::string *ErrMsg)
148148

149149
// Determine whether we can register EH tables.
150150
#if (defined(__GNUC__) && !defined(__ARM_EABI__) && \
151-
!defined(__USING_SJLJ_EXCEPTIONS__))
151+
!defined(__USING_SJLJ_EXCEPTIONS__)) && !defined(__SEH__)
152152
#define HAVE_EHTABLE_SUPPORT 1
153153
#else
154154
#define HAVE_EHTABLE_SUPPORT 0

0 commit comments

Comments
 (0)