diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-25 11:56:50 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-25 11:56:50 -0700 |
commit | 3b7c3a654c9175f41ac871a937cbcae73dfb3c5d (patch) | |
tree | 21094939ea6c8b726c481d7b28eaf4ea27c64008 /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | |
parent | aa8feeefd3ac6c78ee8f67bf033976fc7d68bc6d (diff) | |
download | llvm-3b7c3a654c9175f41ac871a937cbcae73dfb3c5d.zip llvm-3b7c3a654c9175f41ac871a937cbcae73dfb3c5d.tar.gz llvm-3b7c3a654c9175f41ac871a937cbcae73dfb3c5d.tar.bz2 |
Revert "Don't use Optional::hasValue (NFC)"
This reverts commit aa8feeefd3ac6c78ee8f67bf033976fc7d68bc6d.
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
-rw-r--r-- | clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp b/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp index b1450b2..c4797ce 100644 --- a/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp +++ b/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp @@ -31,14 +31,14 @@ namespace { /// at position \p Key. void serializeObject(Object &Paren, StringRef Key, Optional<Object> Obj) { if (Obj) - Paren[Key] = std::move(*Obj); + Paren[Key] = std::move(Obj.getValue()); } /// Helper function to inject a JSON array \p Array into object \p Paren at /// position \p Key. void serializeArray(Object &Paren, StringRef Key, Optional<Array> Array) { if (Array) - Paren[Key] = std::move(*Array); + Paren[Key] = std::move(Array.getValue()); } /// Serialize a \c VersionTuple \p V with the Symbol Graph semantic version |