Skip to content

Commit 96ff85c

Browse files
committed
Fix xplat builds: Remove from templatized ctors to fix compilation unit logic.
1 parent 4066662 commit 96ff85c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lib/Parser/RegexRuntime.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,9 +1443,9 @@ namespace UnifiedRegex
14431443
// ----------------------------------------------------------------------
14441444

14451445
template <>
1446-
inline BOITestInst<true>::BOITestInst() : Inst(BOIHardFailTest) {}
1446+
BOITestInst<true>::BOITestInst() : Inst(BOIHardFailTest) {}
14471447
template <>
1448-
inline BOITestInst<false>::BOITestInst() : Inst(BOITest) {}
1448+
BOITestInst<false>::BOITestInst() : Inst(BOITest) {}
14491449

14501450
template <bool canHardFail>
14511451
inline bool BOITestInst<canHardFail>::Exec(REGEX_INST_EXEC_PARAMETERS) const
@@ -1491,9 +1491,9 @@ namespace UnifiedRegex
14911491
// ----------------------------------------------------------------------
14921492

14931493
template <>
1494-
inline EOITestInst<true>::EOITestInst() : Inst(EOIHardFailTest) {}
1494+
EOITestInst<true>::EOITestInst() : Inst(EOIHardFailTest) {}
14951495
template <>
1496-
inline EOITestInst<false>::EOITestInst() : Inst(EOITest) {}
1496+
EOITestInst<false>::EOITestInst() : Inst(EOITest) {}
14971497

14981498
template <bool canHardFail>
14991499
inline bool EOITestInst<canHardFail>::Exec(REGEX_INST_EXEC_PARAMETERS) const
@@ -1593,9 +1593,9 @@ namespace UnifiedRegex
15931593
// ----------------------------------------------------------------------
15941594

15951595
template <>
1596-
inline WordBoundaryTestInst<true>::WordBoundaryTestInst() : Inst(NegatedWordBoundaryTest) {}
1596+
WordBoundaryTestInst<true>::WordBoundaryTestInst() : Inst(NegatedWordBoundaryTest) {}
15971597
template <>
1598-
inline WordBoundaryTestInst<false>::WordBoundaryTestInst() : Inst(WordBoundaryTest) {}
1598+
WordBoundaryTestInst<false>::WordBoundaryTestInst() : Inst(WordBoundaryTest) {}
15991599

16001600
template <bool isNegation>
16011601
inline bool WordBoundaryTestInst<isNegation>::Exec(REGEX_INST_EXEC_PARAMETERS) const

lib/Parser/RegexRuntime.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ namespace UnifiedRegex
844844
template <bool canHardFail>
845845
struct BOITestInst : Inst
846846
{
847-
inline BOITestInst();
847+
BOITestInst();
848848

849849
INST_BODY
850850
};
@@ -853,7 +853,7 @@ namespace UnifiedRegex
853853
template <bool canHardFail>
854854
struct EOITestInst : Inst
855855
{
856-
inline EOITestInst();
856+
EOITestInst();
857857

858858
INST_BODY
859859
};
@@ -877,7 +877,7 @@ namespace UnifiedRegex
877877
template <bool isNegation>
878878
struct WordBoundaryTestInst : Inst
879879
{
880-
inline WordBoundaryTestInst();
880+
WordBoundaryTestInst();
881881

882882
INST_BODY
883883
};

0 commit comments

Comments
 (0)