diff --git a/clang/include/clang/Basic/DirectoryEntry.h b/clang/include/clang/Basic/DirectoryEntry.h index d54b81d2e6e764..2e67e14784e5d1 100644 --- a/clang/include/clang/Basic/DirectoryEntry.h +++ b/clang/include/clang/Basic/DirectoryEntry.h @@ -138,7 +138,7 @@ template class MapEntryOptionalStorage { return MaybeRef; } RefTy &getValue() & { - assert(hasValue()); + assert(has_value()); return MaybeRef; } RefTy const &value() const & { @@ -146,7 +146,7 @@ template class MapEntryOptionalStorage { return MaybeRef; } RefTy const &getValue() const & { - assert(hasValue()); + assert(has_value()); return MaybeRef; } RefTy &&value() && { @@ -154,7 +154,7 @@ template class MapEntryOptionalStorage { return std::move(MaybeRef); } RefTy &&getValue() && { - assert(hasValue()); + assert(has_value()); return std::move(MaybeRef); }