Skip to content

Commit 65d3009

Browse files
authored
[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.
1 parent c8f0e97 commit 65d3009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaOpenMP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24330,7 +24330,7 @@ SemaOpenMP::ActOnOpenMPHasDeviceAddrClause(ArrayRef<Expr *> VarList,
2433024330

2433124331
OMPClause *SemaOpenMP::ActOnOpenMPAllocateClause(
2433224332
Expr *Allocator, ArrayRef<Expr *> VarList, SourceLocation StartLoc,
24333-
SourceLocation ColonLoc, SourceLocation LParenLoc, SourceLocation EndLoc) {
24333+
SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc) {
2433424334
if (Allocator) {
2433524335
// OpenMP [2.11.4 allocate Clause, Description]
2433624336
// allocator is an expression of omp_allocator_handle_t type.

0 commit comments

Comments
 (0)