Author: Kazu Hirata Date: 2022-06-19T18:59:56-07:00 New Revision: 05ff3790b31638bd4759c82b534417396d7c44b1
URL: https://github.com/llvm/llvm-project/commit/05ff3790b31638bd4759c82b534417396d7c44b1 DIFF: https://github.com/llvm/llvm-project/commit/05ff3790b31638bd4759c82b534417396d7c44b1.diff LOG: [Basic] Use has_value (NFC) Added: Modified: clang/include/clang/Basic/DirectoryEntry.h Removed: ################################################################################ diff --git a/clang/include/clang/Basic/DirectoryEntry.h b/clang/include/clang/Basic/DirectoryEntry.h index d54b81d2e6e7..2e67e14784e5 100644 --- a/clang/include/clang/Basic/DirectoryEntry.h +++ b/clang/include/clang/Basic/DirectoryEntry.h @@ -138,7 +138,7 @@ template <class RefTy> class MapEntryOptionalStorage { return MaybeRef; } RefTy &getValue() & { - assert(hasValue()); + assert(has_value()); return MaybeRef; } RefTy const &value() const & { @@ -146,7 +146,7 @@ template <class RefTy> class MapEntryOptionalStorage { return MaybeRef; } RefTy const &getValue() const & { - assert(hasValue()); + assert(has_value()); return MaybeRef; } RefTy &&value() && { @@ -154,7 +154,7 @@ template <class RefTy> class MapEntryOptionalStorage { return std::move(MaybeRef); } RefTy &&getValue() && { - assert(hasValue()); + assert(has_value()); return std::move(MaybeRef); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits