Skip to content

Commit 05ff379

Browse files
[Basic] Use has_value (NFC)
1 parent 2ef7c4c commit 05ff379

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/include/clang/Basic/DirectoryEntry.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,23 +138,23 @@ template <class RefTy> class MapEntryOptionalStorage {
138138
return MaybeRef;
139139
}
140140
RefTy &getValue() & {
141-
assert(hasValue());
141+
assert(has_value());
142142
return MaybeRef;
143143
}
144144
RefTy const &value() const & {
145145
assert(has_value());
146146
return MaybeRef;
147147
}
148148
RefTy const &getValue() const & {
149-
assert(hasValue());
149+
assert(has_value());
150150
return MaybeRef;
151151
}
152152
RefTy &&value() && {
153153
assert(has_value());
154154
return std::move(MaybeRef);
155155
}
156156
RefTy &&getValue() && {
157-
assert(hasValue());
157+
assert(has_value());
158158
return std::move(MaybeRef);
159159
}
160160

0 commit comments

Comments
 (0)