[clang] 65d3009 - [OpenMP][NFC] Fix argument order of SourceLocations for allocate clause (#94777)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 10 08:24:08 PDT 2024


Author: Mike Rice
Date: 2024-06-10T08:24:03-07:00
New Revision: 65d300989b1cdf84f518af1f46b6c7ba93ecd17c

URL: https://github.com/llvm/llvm-project/commit/65d300989b1cdf84f518af1f46b6c7ba93ecd17c
DIFF: https://github.com/llvm/llvm-project/commit/65d300989b1cdf84f518af1f46b6c7ba93ecd17c.diff

LOG: [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.

Added: 
    

Modified: 
    clang/lib/Sema/SemaOpenMP.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index 5af32cb3589d3..5c759aedf9798 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.


        


More information about the cfe-commits mailing list