File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ struct CheckString {
80
80
// Match itself from the last position after matching CHECK-DAG.
81
81
let matchBuffer = buffer. substring ( from: buffer. index ( buffer. startIndex, offsetBy: lastPos) )
82
82
guard let ( range, mutVariableTable) = self . pattern. match ( matchBuffer, initialTable) else {
83
- diagnoseFailedCheck ( variableTable , options, buffer)
83
+ diagnoseFailedCheck ( initialTable , options, buffer)
84
84
return nil
85
85
}
86
86
let ( matchPos, matchLen) = ( range. location, range. length)
@@ -344,7 +344,7 @@ struct CheckString {
344
344
)
345
345
}
346
346
} else {
347
- if let varDef = self . pattern . variableDefs [ varName] {
347
+ if let varDef = variableTable [ varName] {
348
348
diagnose ( . note,
349
349
at: self . loc,
350
350
with: " with variable ' \( varName) ' equal to ' \( varDef) ' " ,
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ class DAGSpec : XCTestCase {
15
15
} )
16
16
}
17
17
18
- #if swift(>=4)
19
18
func testDAGWithInst( ) {
20
19
XCTAssert ( fileCheckOutput ( of: . stdout, withPrefixes: [ " CHECK-INSTDAG " ] ) {
21
20
// CHECK-INSTDAG-DAG: add [[REG1:r[0-9]+]], r1, r2
@@ -46,6 +45,7 @@ class DAGSpec : XCTestCase {
46
45
} )
47
46
}
48
47
48
+ #if swift(>=4)
49
49
func testDAGXFailWithInst( ) {
50
50
XCTAssertFalse ( fileCheckOutput ( of: . stdout, withPrefixes: [ " INSTDAG-XFAIL1 " ] ) {
51
51
// INSTDAG-XFAIL1: __x1
You can’t perform that action at this time.
0 commit comments