Skip to content

Commit 3d91fd1

Browse files
committed
Use a remark, rather than a disembodied note, for constant evaluator
1 parent 3723c2f commit 3d91fd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/DiagnosticsSIL.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ NOTE(constexpr_witness_call_with_no_conformance, none,
445445
"%select{for this call|for a witness-method invoked during this call}0",
446446
(bool))
447447

448-
NOTE(constexpr_unknown_control_flow_due_to_skip,none, "branch depends on "
448+
REMARK(constexpr_unknown_control_flow_due_to_skip,none, "branch depends on "
449449
"non-constant value produced by an unevaluated instructions", ())
450450
NOTE(constexpr_returned_by_unevaluated_instruction,none,
451451
"result of an unevaluated instruction is not a constant", ())

test/SILOptimizer/constant_evaluator_skip_test.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ bb0:
9292
%9 = integer_literal $Builtin.Int32, 0
9393
%10 = builtin "cmp_slt_Int32"(%8 : $Builtin.Int32, %9 : $Builtin.Int32) : $Builtin.Int1
9494
cond_br %10, bb2, bb3
95-
// CHECK: {{.*}}:[[@LINE-1]]:{{.*}}: note: branch depends on non-constant value produced by an unevaluated instructions
95+
// CHECK-LABEL: {{.*}}:94:{{.*}}: remark: branch depends on non-constant value produced by an unevaluated instructions
9696
// CHECK: {{.*}}: note: result of an unevaluated instruction is not a constant
9797
bb2:
9898
br bb4

0 commit comments

Comments
 (0)