We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf9ece3 commit ddae4e7Copy full SHA for ddae4e7
llvm/include/llvm/ADT/DenseMapInfo.h
@@ -326,13 +326,9 @@ template <typename T> struct DenseMapInfo<std::optional<T>> {
326
using Optional = std::optional<T>;
327
using Info = DenseMapInfo<T>;
328
329
- static inline Optional getEmptyKey() {
330
- return std::make_optional(Info::getEmptyKey());
331
- }
+ static inline Optional getEmptyKey() { return {Info::getEmptyKey()}; }
332
333
- static inline Optional getTombstoneKey() {
334
- return std::make_optional(Info::getTombstoneKey());
335
+ static inline Optional getTombstoneKey() { return {Info::getTombstoneKey()}; }
336
337
static unsigned getHashValue(const Optional &OptionalVal) {
338
return detail::combineHashValue(
0 commit comments