Skip to content

Commit 76fee8f

Browse files
authored
[flang][OpenMP][NFC] Don't use special chars in error messages (#134686)
Some error messages were using a special char for `fi`, in the word `specified`, probably due to a typo. This caused an error on Windows: #134625
1 parent 8f5a3ec commit 76fee8f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

flang/lib/Semantics/check-omp-structure.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5762,7 +5762,7 @@ void OmpStructureChecker::Enter(const parser::OpenMPInteropConstruct &x) {
57625762
const auto *objectSymbol{name->symbol};
57635763
if (llvm::is_contained(objectSymbolList, objectSymbol)) {
57645764
context_.Say(GetContext().directiveSource,
5765-
"Each interop-var may be specified for at most one action-clause of each INTEROP construct."_err_en_US);
5765+
"Each interop-var may be specified for at most one action-clause of each INTEROP construct."_err_en_US);
57665766
} else {
57675767
objectSymbolList.insert(objectSymbol);
57685768
}
@@ -5777,7 +5777,7 @@ void OmpStructureChecker::Enter(const parser::OpenMPInteropConstruct &x) {
57775777
const auto *objectSymbol{name->symbol};
57785778
if (llvm::is_contained(objectSymbolList, objectSymbol)) {
57795779
context_.Say(GetContext().directiveSource,
5780-
"Each interop-var may be specified for at most one action-clause of each INTEROP construct."_err_en_US);
5780+
"Each interop-var may be specified for at most one action-clause of each INTEROP construct."_err_en_US);
57815781
} else {
57825782
objectSymbolList.insert(objectSymbol);
57835783
}
@@ -5789,7 +5789,7 @@ void OmpStructureChecker::Enter(const parser::OpenMPInteropConstruct &x) {
57895789
const auto *objectSymbol{name->symbol};
57905790
if (llvm::is_contained(objectSymbolList, objectSymbol)) {
57915791
context_.Say(GetContext().directiveSource,
5792-
"Each interop-var may be specified for at most one action-clause of each INTEROP construct."_err_en_US);
5792+
"Each interop-var may be specified for at most one action-clause of each INTEROP construct."_err_en_US);
57935793
} else {
57945794
objectSymbolList.insert(objectSymbol);
57955795
}
@@ -5800,7 +5800,7 @@ void OmpStructureChecker::Enter(const parser::OpenMPInteropConstruct &x) {
58005800
}
58015801
if (targetCount > 1 || targetSyncCount > 1) {
58025802
context_.Say(GetContext().directiveSource,
5803-
"Each interop-type may be specified at most once."_err_en_US);
5803+
"Each interop-type may be specified at most once."_err_en_US);
58045804
}
58055805
if (isDependClauseOccured && !targetSyncCount) {
58065806
context_.Say(GetContext().directiveSource,

flang/test/Semantics/OpenMP/interop-construct.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
SUBROUTINE test_interop_01()
99
USE omp_lib
1010
INTEGER(OMP_INTEROP_KIND) :: obj
11-
!ERROR: Each interop-var may be specified for at most one action-clause of each INTEROP construct.
11+
!ERROR: Each interop-var may be specified for at most one action-clause of each INTEROP construct.
1212
!$OMP INTEROP INIT(TARGETSYNC,TARGET: obj) USE(obj)
1313
PRINT *, 'pass'
1414
END SUBROUTINE test_interop_01
1515

1616
SUBROUTINE test_interop_02()
1717
USE omp_lib
1818
INTEGER(OMP_INTEROP_KIND) :: obj
19-
!ERROR: Each interop-type may be specified at most once.
19+
!ERROR: Each interop-type may be specified at most once.
2020
!$OMP INTEROP INIT(TARGETSYNC,TARGET,TARGETSYNC: obj)
2121
PRINT *, 'pass'
2222
END SUBROUTINE test_interop_02

0 commit comments

Comments
 (0)