aboutsummaryrefslogtreecommitdiffstats
path: root/src/3rdparty/masm/yarr/YarrJIT.cpp
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-11-16 10:08:49 +0100
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-11-16 10:08:50 +0100
commite7c316504770ce357b2c73be485cdd8c1da9c4c1 (patch)
treeb49032420022617396a83da310ebe01b38cda8f9 /src/3rdparty/masm/yarr/YarrJIT.cpp
parent87265c7ab8743ece92262cd6b79bbba9dddd1fe1 (diff)
parente3948955c961972d34483e7da9c2908f5cb84420 (diff)
Merge remote-tracking branch 'origin/5.12.0' into 5.12
Diffstat (limited to 'src/3rdparty/masm/yarr/YarrJIT.cpp')
-rw-r--r--src/3rdparty/masm/yarr/YarrJIT.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/3rdparty/masm/yarr/YarrJIT.cpp b/src/3rdparty/masm/yarr/YarrJIT.cpp
index ce7c7163ed..9a9ab581e8 100644
--- a/src/3rdparty/masm/yarr/YarrJIT.cpp
+++ b/src/3rdparty/masm/yarr/YarrJIT.cpp
@@ -177,11 +177,21 @@ class YarrGenerator : private DefaultMacroAssembler {
uint32_t begin;
uint32_t matchAmount;
uintptr_t returnAddress;
+#if OS(INTEGRITY)
+ union {
+ struct Subpatterns {
+ unsigned start;
+ unsigned end;
+ } subpatterns[1];
+ uintptr_t frameSlots[1];
+ };
+#else
struct Subpatterns {
unsigned start;
unsigned end;
} subpatterns[0];
uintptr_t frameSlots[0];
+#endif
static size_t sizeFor(ParenContextSizes& parenContextSizes)
{