[clang] 05ff379 - [Basic] Use has_value (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 19 19:00:00 PDT 2022
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);
}
More information about the cfe-commits
mailing list