Skip to content

Commit 2a8988a

Browse files
committed
Stdlib Regex support can't come fast enough
1 parent 1d5a077 commit 2a8988a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/LLVMTests/FileCheck.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,11 @@ private class Pattern {
680680
// If this defines any variables, remember their values.
681681
for (v, index) in self.variableDefs {
682682
assert(index < fullMatch.numberOfRanges, "Internal paren error")
683+
#if os(macOS)
683684
let r = fullMatch.rangeAt(index)
685+
#else
686+
let r = fullMatch.range(at: index)
687+
#endif
684688
variableTable[v] = buffer.substring(
685689
with: Range<String.Index>(
686690
uncheckedBounds: (

0 commit comments

Comments
 (0)