[flang] Removed unused parameter and tweaked the error message one more time.
authorPeter Steinfeld <psteinfeld@nvidia.com>
Wed, 10 Apr 2019 22:08:12 +0000 (15:08 -0700)
committerGitHub <noreply@github.com>
Thu, 11 Apr 2019 22:35:44 +0000 (15:35 -0700)
Original-commit: flang-compiler/f18@476791da2a1b0e876ac42ed18933be5b90e51448
Reviewed-on: https://github.com/flang-compiler/f18/pull/400
Tree-same-pre-rewrite: false

flang/lib/semantics/resolve-labels.cc

index ae06e10..a9362dd 100644 (file)
@@ -898,13 +898,11 @@ void CheckLabelDoConstraints(const SourceStmtList &dos,
               TargetStatementEnum::CompatibleDo)) {
         errorHandler.Say(doTarget.parserCharBlock,
             parser::MessageFormattedText{
-                "Only an END DO or CONTINUE must be used to terminate a labeled DO loop"_err_en_US,
-                SayLabel(label)});
+                "Only an END DO or CONTINUE must be used to terminate a labeled DO loop"_err_en_US});
       } else {
         errorHandler.Say(doTarget.parserCharBlock,
             parser::MessageFormattedText{
-                "Only an END DO or CONTINUE should be used to terminate a labeled DO loop"_en_US,
-                SayLabel(label)});
+                "Only an END DO or CONTINUE should be used to terminate a labeled DO loop"_en_US});
       }
     } else {
       loopBodies.emplace_back(SkipLabel(position), doTarget.parserCharBlock);