[flang-commits] [PATCH] D126490: [nfc][flang] Fix spelling errors and usage in an error message

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Sat May 28 09:33:28 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG3142c761da97: [nfc][flang] Fix spelling errors and usage in an error message (authored by klausler).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126490/new/

https://reviews.llvm.org/D126490

Files:
  flang/lib/Semantics/check-call.cpp
  flang/test/Semantics/call02.f90


Index: flang/test/Semantics/call02.f90
===================================================================
--- flang/test/Semantics/call02.f90
+++ flang/test/Semantics/call02.f90
@@ -126,9 +126,8 @@
 
 subroutine p05
   integer :: a1(2), a2, a3
-
-  !ERROR: In an elemental procedure with at least one array arugment, actual argument a2 that corresponds to an INTENT(OUT) or INTENT(INOUT) dummay argument must be an array
-  !ERROR: In an elemental procedure with at least one array arugment, actual argument a3 that corresponds to an INTENT(OUT) or INTENT(INOUT) dummay argument must be an array
+  !ERROR: In an elemental procedure reference with at least one array argument, actual argument a2 that corresponds to an INTENT(OUT) or INTENT(INOUT) dummy argument must be an array
+  !ERROR: In an elemental procedure reference with at least one array argument, actual argument a3 that corresponds to an INTENT(OUT) or INTENT(INOUT) dummy argument must be an array
   call s1(a1, a2, a3)
 contains
   elemental subroutine s1(a, b, c)
@@ -139,4 +138,3 @@
     c = a
   end
 end
-
Index: flang/lib/Semantics/check-call.cpp
===================================================================
--- flang/lib/Semantics/check-call.cpp
+++ flang/lib/Semantics/check-call.cpp
@@ -865,7 +865,7 @@
                          dummy.GetIntent() == common::Intent::InOut) &&
               hasArrayArg) {
             messages.Say(
-                "In an elemental procedure with at least one array arugment, actual argument %s that corresponds to an INTENT(OUT) or INTENT(INOUT) dummay argument must be an array"_err_en_US,
+                "In an elemental procedure reference with at least one array argument, actual argument %s that corresponds to an INTENT(OUT) or INTENT(INOUT) dummy argument must be an array"_err_en_US,
                 expr->AsFortran());
           }
         }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126490.432736.patch
Type: text/x-patch
Size: 1875 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220528/4c86d623/attachment.bin>


More information about the flang-commits mailing list