diff options
author | Peter Klausler <pklausler@nvidia.com> | 2025-07-30 11:41:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-30 11:41:57 -0700 |
commit | 13b2fc1b9d04065d542acc0dd357865febfd3377 (patch) | |
tree | eeb69741964573f708be9c2fc02e7cc9ee8fe5dd /flang/lib | |
parent | b01ab5318e6d1c0e19245cd0551789c02c81fb7d (diff) | |
download | llvm-13b2fc1b9d04065d542acc0dd357865febfd3377.zip llvm-13b2fc1b9d04065d542acc0dd357865febfd3377.tar.gz llvm-13b2fc1b9d04065d542acc0dd357865febfd3377.tar.bz2 |
[flang][near NFC] Fix English in an error message (#151029)
Correct "is a not a pointer" to "is not a pointer" in an error message.
While here, also unsplit nearby error messages so that their contents
are more searchable.
Fixes https://github.com/llvm/llvm-project/issues/150864.
Diffstat (limited to 'flang/lib')
-rw-r--r-- | flang/lib/Semantics/pointer-assignment.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/flang/lib/Semantics/pointer-assignment.cpp b/flang/lib/Semantics/pointer-assignment.cpp index 0908769..e767bf8 100644 --- a/flang/lib/Semantics/pointer-assignment.cpp +++ b/flang/lib/Semantics/pointer-assignment.cpp @@ -270,18 +270,18 @@ bool PointerAssignmentChecker::Check(const evaluate::FunctionRef<T> &f) { std::optional<MessageFixedText> msg; const auto &funcResult{proc->functionResult}; // C1025 if (!funcResult) { - msg = "%s is associated with the non-existent result of reference to" - " procedure"_err_en_US; + msg = + "%s is associated with the non-existent result of reference to procedure"_err_en_US; } else if (CharacterizeProcedure()) { // Shouldn't be here in this function unless lhs is an object pointer. - msg = "Procedure %s is associated with the result of a reference to" - " function '%s' that does not return a procedure pointer"_err_en_US; + msg = + "Procedure %s is associated with the result of a reference to function '%s' that does not return a procedure pointer"_err_en_US; } else if (funcResult->IsProcedurePointer()) { - msg = "Object %s is associated with the result of a reference to" - " function '%s' that is a procedure pointer"_err_en_US; + msg = + "Object %s is associated with the result of a reference to function '%s' that is a procedure pointer"_err_en_US; } else if (!funcResult->attrs.test(FunctionResult::Attr::Pointer)) { - msg = "%s is associated with the result of a reference to function '%s'" - " that is a not a pointer"_err_en_US; + msg = + "%s is associated with the result of a reference to function '%s' that is not a pointer"_err_en_US; } else if (isContiguous_ && !funcResult->attrs.test(FunctionResult::Attr::Contiguous)) { auto restorer{common::ScopedSet(lhs_, symbol)}; |