[flang] Fix typos and style in some comments
authorJean Perier <jperier@nvidia.com>
Wed, 18 Sep 2019 15:04:52 +0000 (08:04 -0700)
committerJean Perier <jperier@nvidia.com>
Wed, 18 Sep 2019 15:04:52 +0000 (08:04 -0700)
Original-commit: flang-compiler/f18@621ded353f6179045e8fc4c18ef13a4aa05293b9
Reviewed-on: https://github.com/flang-compiler/f18/pull/749

flang/lib/evaluate/host.cc
flang/lib/evaluate/intrinsics.cc

index e41e01d..d932c83 100644 (file)
@@ -89,7 +89,8 @@ void HostFloatingPointEnvironment::SetUpHostFloatingPointEnvironment(
   case RoundingMode::TiesAwayFromZero:
     fesetround(FE_TONEAREST);
     context.messages().Say(
-        "TiesAwayFromZero rounding mode is not available not available when folding constants with host runtime. Using TiesToEven instead."_en_US);
+        "TiesAwayFromZero rounding mode is not available when folding constants"
+        " with host runtime; using TiesToEven instead"_en_US);
     break;
   }
   flags_.clear();
index 08c168b..b2de555 100644 (file)
@@ -1685,7 +1685,7 @@ std::optional<SpecificCall> IntrinsicProcTable::Implementation::Probe(
             DynamicType newType{GetReturnType(*specIter->second, defaults_)};
             context.messages().Say(
                 "Argument type does not match specific intrinsic '%s' "
-                "requirements, using '%s' generic instead and converting the "
+                "requirements; using '%s' generic instead and converting the "
                 "result to %s if needed"_en_US,
                 name, genericName, newType.AsFortran());
             specificCall->specificIntrinsic.characteristics.value()