[flang-commits] [flang] 3142c76 - [nfc][flang] Fix spelling errors and usage in an error message
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Sat May 28 09:33:22 PDT 2022
Author: Peter Klausler
Date: 2022-05-28T09:33:10-07:00
New Revision: 3142c761da974e6f963cebca34a7880392203347
URL: https://github.com/llvm/llvm-project/commit/3142c761da974e6f963cebca34a7880392203347
DIFF: https://github.com/llvm/llvm-project/commit/3142c761da974e6f963cebca34a7880392203347.diff
LOG: [nfc][flang] Fix spelling errors and usage in an error message
Differential Revision: https://reviews.llvm.org/D126490
Added:
Modified:
flang/lib/Semantics/check-call.cpp
flang/test/Semantics/call02.f90
Removed:
################################################################################
diff --git a/flang/lib/Semantics/check-call.cpp b/flang/lib/Semantics/check-call.cpp
index 19edc232fede..10d178b312c7 100644
--- a/flang/lib/Semantics/check-call.cpp
+++ b/flang/lib/Semantics/check-call.cpp
@@ -865,7 +865,7 @@ static bool CheckElementalConformance(parser::ContextualMessages &messages,
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());
}
}
diff --git a/flang/test/Semantics/call02.f90 b/flang/test/Semantics/call02.f90
index db10472f1a4e..8ef10415be80 100644
--- a/flang/test/Semantics/call02.f90
+++ b/flang/test/Semantics/call02.f90
@@ -126,9 +126,8 @@ subroutine p04
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 @@ elemental subroutine s1(a, b, c)
c = a
end
end
-
More information about the flang-commits
mailing list