diff options
author | Jay Foad <jay.foad@amd.com> | 2024-10-24 10:23:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-24 10:23:40 +0100 |
commit | 4dd55c567aaed30c6842812e0798a70fee324c98 (patch) | |
tree | 832c5f53b744938b73f6484e3acde01bb1972677 /clang/lib/Sema/SemaOpenMP.cpp | |
parent | e37d736def5b95a2710f92881b5fc8b0494d8a05 (diff) | |
download | llvm-4dd55c567aaed30c6842812e0798a70fee324c98.zip llvm-4dd55c567aaed30c6842812e0798a70fee324c98.tar.gz llvm-4dd55c567aaed30c6842812e0798a70fee324c98.tar.bz2 |
[clang] Use {} instead of std::nullopt to initialize empty ArrayRef (#109399)
Follow up to #109133.
Diffstat (limited to 'clang/lib/Sema/SemaOpenMP.cpp')
-rw-r--r-- | clang/lib/Sema/SemaOpenMP.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index fa81fc4..79e1536 100644 --- a/clang/lib/Sema/SemaOpenMP.cpp +++ b/clang/lib/Sema/SemaOpenMP.cpp @@ -15901,9 +15901,9 @@ OMPClause *SemaOpenMP::ActOnOpenMPSimpleClause( return Res; } -static std::string -getListOfPossibleValues(OpenMPClauseKind K, unsigned First, unsigned Last, - ArrayRef<unsigned> Exclude = std::nullopt) { +static std::string getListOfPossibleValues(OpenMPClauseKind K, unsigned First, + unsigned Last, + ArrayRef<unsigned> Exclude = {}) { SmallString<256> Buffer; llvm::raw_svector_ostream Out(Buffer); unsigned Skipped = Exclude.size(); @@ -21296,7 +21296,7 @@ static void checkMappableExpressionList( CXXScopeSpec &MapperIdScopeSpec, DeclarationNameInfo MapperId, ArrayRef<Expr *> UnresolvedMappers, OpenMPMapClauseKind MapType = OMPC_MAP_unknown, - ArrayRef<OpenMPMapModifierKind> Modifiers = std::nullopt, + ArrayRef<OpenMPMapModifierKind> Modifiers = {}, bool IsMapTypeImplicit = false, bool NoDiagnose = false) { // We only expect mappable expressions in 'to', 'from', and 'map' clauses. assert((CKind == OMPC_map || CKind == OMPC_to || CKind == OMPC_from) && |