Skip to content

Commit

Permalink
Fix accidental FileCheck variable captures.
Browse files Browse the repository at this point in the history
These should be simple substitutions rather than captures, so that we're
actually testing the capture from the previous line.

Noticed by inspection.
  • Loading branch information
rudkx committed Dec 3, 2015
1 parent 907fa0b commit 88b2ed9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/SILPasses/constant_propagation.sil
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ bb0:
// CHECK-NOT: integer_literal $Builtin.Int64, 0
// CHECK-NOT: builtin
// CHECK: [[RES:%.*]] = integer_literal $Builtin.Int64, 7
// CHECK-NEXT: return [[RES:%.*]] : $Builtin.Int64
// CHECK-NEXT: return [[RES]] : $Builtin.Int64
}

// Fold casts. (This test assumes that DCE does not run, otherwise the unreachable blocks will get removed.)
Expand Down
2 changes: 1 addition & 1 deletion test/SILPasses/sil_simplify_instrs.sil
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ bb0(%x : $Builtin.Int64):
// CHECK-LABEL: sil @fold_mul_with_overflow_zeros
// CHECK-NOT: builtin "int_smul_with_overflow_Int64"
// CHECK: [[RES:%.*]] = integer_literal $Builtin.Int64, 0
// CHECK-NEXT: return [[RES:%.*]] : $Builtin.Int64
// CHECK-NEXT: return [[RES]] : $Builtin.Int64
}

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

0 comments on commit 88b2ed9

Please sign in to comment.