aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Rice <michael.p.rice@intel.com>2024-06-10 08:24:03 -0700
committerGitHub <noreply@github.com>2024-06-10 08:24:03 -0700
commit65d300989b1cdf84f518af1f46b6c7ba93ecd17c (patch)
treef2b391cc3240fd27b51e3560240ae6b64e6018c7
parentc8f0e976235c812955c5ff935886f8a1b9088500 (diff)
downloadllvm-65d300989b1cdf84f518af1f46b6c7ba93ecd17c.zip
llvm-65d300989b1cdf84f518af1f46b6c7ba93ecd17c.tar.gz
llvm-65d300989b1cdf84f518af1f46b6c7ba93ecd17c.tar.bz2
[OpenMP][NFC] Fix argument order of SourceLocations for allocate clause (#94777)
Static verifier caught passing ColonLoc/LParenLoc in wrong order. Marked as NFC since these don't seem to be used for anything currently that I can think to test for.
-rw-r--r--clang/lib/Sema/SemaOpenMP.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index 5af32cb..5c759ae 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -24330,7 +24330,7 @@ SemaOpenMP::ActOnOpenMPHasDeviceAddrClause(ArrayRef<Expr *> VarList,
OMPClause *SemaOpenMP::ActOnOpenMPAllocateClause(
Expr *Allocator, ArrayRef<Expr *> VarList, SourceLocation StartLoc,
- SourceLocation ColonLoc, SourceLocation LParenLoc, SourceLocation EndLoc) {
+ SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc) {
if (Allocator) {
// OpenMP [2.11.4 allocate Clause, Description]
// allocator is an expression of omp_allocator_handle_t type.