diff options
author | Kazu Hirata <kazu@google.com> | 2025-06-27 11:31:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-27 11:31:11 -0700 |
commit | 9d6cbc3c20923759d9ffdf19b4f0d498f8cf5584 (patch) | |
tree | 2947de081574fa16c5f04e32dd8162b0f46d1265 /clang/lib/Serialization | |
parent | 71bc606e95d6771467326013c2e006728eabf4a8 (diff) | |
download | llvm-9d6cbc3c20923759d9ffdf19b4f0d498f8cf5584.zip llvm-9d6cbc3c20923759d9ffdf19b4f0d498f8cf5584.tar.gz llvm-9d6cbc3c20923759d9ffdf19b4f0d498f8cf5584.tar.bz2 |
[ADT] Deprecate MutableArrayRef(std::nullopt) (#146113)
ArrayRef(std::nullopt) just got deprecated. This patch does the same
to MutableArrayRef(std::nullopt). Since there are only a couple of
uses, this patch does migration and deprecation at the same time.
Diffstat (limited to 'clang/lib/Serialization')
-rw-r--r-- | clang/lib/Serialization/ASTWriterDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp index 2e390db..7457c49 100644 --- a/clang/lib/Serialization/ASTWriterDecl.cpp +++ b/clang/lib/Serialization/ASTWriterDecl.cpp @@ -302,7 +302,7 @@ namespace clang { } MutableArrayRef<FunctionTemplateSpecializationInfo> getPartialSpecializations(FunctionTemplateDecl::Common *) { - return std::nullopt; + return {}; } template<typename DeclTy> |