[flang-commits] [flang] [NFC] [Flang] [Semantics] [OpenMP] Fix typo in error message. (PR #110147)

via flang-commits flang-commits at lists.llvm.org
Thu Sep 26 10:28:49 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-semantics

Author: Raghu Maddhipatla (raghavendhra)

<details>
<summary>Changes</summary>

Fix typo which should be "at least" instead of "at lease"

---
Full diff: https://github.com/llvm/llvm-project/pull/110147.diff


1 Files Affected:

- (modified) flang/lib/Semantics/check-omp-structure.cpp (+1-1) 


``````````diff
diff --git a/flang/lib/Semantics/check-omp-structure.cpp b/flang/lib/Semantics/check-omp-structure.cpp
index fd58f6525a26d8..2943ee5dd75526 100644
--- a/flang/lib/Semantics/check-omp-structure.cpp
+++ b/flang/lib/Semantics/check-omp-structure.cpp
@@ -1247,7 +1247,7 @@ void OmpStructureChecker::Leave(const parser::OmpDeclareTargetWithClause &x) {
         FindClause(llvm::omp::Clause::OMPC_link);
     if (!enterClause && !toClause && !linkClause) {
       context_.Say(x.source,
-          "If the DECLARE TARGET directive has a clause, it must contain at lease one ENTER clause or LINK clause"_err_en_US);
+          "If the DECLARE TARGET directive has a clause, it must contain at least one ENTER clause or LINK clause"_err_en_US);
     }
     if (toClause && context_.ShouldWarn(common::UsageWarning::OpenMPUsage)) {
       context_.Say(toClause->source,

``````````

</details>


https://github.com/llvm/llvm-project/pull/110147


More information about the flang-commits mailing list