diff options
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index c79c2f2..1f61e0e 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -259,15 +259,13 @@ static bool ParseFrontendArgs(FrontendOptions &opts, llvm::opt::ArgList &args, columns = -1; } if (columns < 0) { - diags.Report(clang::diag::err_drv_invalid_value_with_suggestion) - << arg->getOption().getName() << arg->getValue() - << "value must be 'none' or a non-negative integer"; + diags.Report(clang::diag::err_drv_negative_columns) + << arg->getOption().getName() << arg->getValue(); } else if (columns == 0) { opts.fixedFormColumns_ = 1000000; } else if (columns < 7) { - diags.Report(clang::diag::err_drv_invalid_value_with_suggestion) - << arg->getOption().getName() << arg->getValue() - << "value must be at least seven"; + diags.Report(clang::diag::err_drv_small_columns) + << arg->getOption().getName() << arg->getValue() << "7"; } else { opts.fixedFormColumns_ = columns; } |