Skip to content

Commit 88b2ed9

Browse files
committed
Fix accidental FileCheck variable captures.
These should be simple substitutions rather than captures, so that we're actually testing the capture from the previous line. Noticed by inspection.
1 parent 907fa0b commit 88b2ed9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/SILPasses/constant_propagation.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bb0:
3838
// CHECK-NOT: integer_literal $Builtin.Int64, 0
3939
// CHECK-NOT: builtin
4040
// CHECK: [[RES:%.*]] = integer_literal $Builtin.Int64, 7
41-
// CHECK-NEXT: return [[RES:%.*]] : $Builtin.Int64
41+
// CHECK-NEXT: return [[RES]] : $Builtin.Int64
4242
}
4343

4444
// Fold casts. (This test assumes that DCE does not run, otherwise the unreachable blocks will get removed.)

test/SILPasses/sil_simplify_instrs.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ bb0(%x : $Builtin.Int64):
5656
// CHECK-LABEL: sil @fold_mul_with_overflow_zeros
5757
// CHECK-NOT: builtin "int_smul_with_overflow_Int64"
5858
// CHECK: [[RES:%.*]] = integer_literal $Builtin.Int64, 0
59-
// CHECK-NEXT: return [[RES:%.*]] : $Builtin.Int64
59+
// CHECK-NEXT: return [[RES]] : $Builtin.Int64
6060
}
6161

6262
// Simplify arithmetic where one operand is a one and the other is not a constant

0 commit comments

Comments
 (0)