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/SemaLookup.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/SemaLookup.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLookup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index e5db113..8468e9a 100644 --- a/clang/lib/Sema/SemaLookup.cpp +++ b/clang/lib/Sema/SemaLookup.cpp @@ -1200,7 +1200,7 @@ static bool LookupDirect(Sema &S, LookupResult &R, const DeclContext *DC) { EPI.ExtInfo = EPI.ExtInfo.withCallingConv(CC_C); EPI.ExceptionSpec = EST_None; QualType ExpectedType = R.getSema().Context.getFunctionType( - R.getLookupName().getCXXNameType(), std::nullopt, EPI); + R.getLookupName().getCXXNameType(), {}, EPI); // Perform template argument deduction against the type that we would // expect the function to have. |