Skip to content

Commit afe5fdc

Browse files
committed
[SILOpt] Tweaked error message.
1 parent 26640ac commit afe5fdc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/sil-opt/SILOpt.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,10 @@ int main(int argc, char **argv) {
538538
bool enableLexicalLifetimes =
539539
EnableLexicalLifetimes | EnableExperimentalMoveOnly;
540540
if (enableLexicalLifetimes && !EnableLexicalBorrowScopes) {
541-
fprintf(stderr, "Error! Cannot specify both -enable-lexical-lifetimes "
542-
"and either -enable-lexical-borrow-scopes=false");
541+
fprintf(
542+
stderr,
543+
"Error! Cannot specify both -enable-lexical-borrow-scopes=false and "
544+
"either -enable-lexical-lifetimes or -enable-experimental-move-only.");
543545
exit(-1);
544546
}
545547
if (enableLexicalLifetimes)

0 commit comments

Comments
 (0)