Skip to content

Commit d8710fc

Browse files
committed
[OSSACompleteLifetime] Fix error message.
1 parent 0a6c712 commit d8710fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/SIL/Utils/OSSALifetimeCompletion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ void AvailabilityBoundaryVisitor::computeRegion(
362362
<< "-sil-ownership-verify-all -Xllvm '-sil-print-function="
363363
<< block->getFunction()->getName()
364364
<< "' -Xllvm -sil-print-types -Xllvm -sil-print-module-on-error\n";
365-
llvm::errs() << "Use the -disable-sil-ownership-verifier to disable "
366-
"this check.\n";
365+
llvm::errs() << "Use the -disable-sil-ownership-verifier frontend flag "
366+
"to disable this check.\n";
367367
llvm::report_fatal_error("Invalid lifetime of value whose availability "
368368
"boundary is being visited.");
369369
}

validation-test/SILOptimizer/ossa_lifetime_completion_crash.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class C {}
2424
// CHECK: Something that ran before OSSALifetimeCompletion (the current pass, an earlier pass, SILGen) has introduced a leak of this value.
2525
// CHECK: Please rerun the crashing swift-frontend command with the following flags added and file a bug with the output:
2626
// CHECK: -sil-ownership-verify-all -Xllvm '-sil-print-function=leak_c' -Xllvm -sil-print-types -Xllvm -sil-print-module-on-error
27-
// CHECK: Use the -disable-sil-ownership-verifier to disable this check.
27+
// CHECK: Use the -disable-sil-ownership-verifier frontend flag to disable this check.
2828
// CHECK: Invalid lifetime of value whose availability boundary is being visited.
2929
sil [ossa] @leak_c : $@convention(thin) (@owned C) -> () {
3030
entry(%c : @owned $C):

0 commit comments

Comments
 (0)