[clang] Use has_value instead of value (NFC)

This commit is contained in:
Kazu Hirata 2022-07-29 21:18:39 -07:00
parent f473558647
commit a948117088
3 changed files with 3 additions and 3 deletions

View File

@ -1249,7 +1249,7 @@ Error OffloadBundler::UnbundleArchive() {
if (!NextTripleOrErr)
return NextTripleOrErr.takeError();
CodeObject = ((*NextTripleOrErr).hasValue()) ? **NextTripleOrErr : "";
CodeObject = ((*NextTripleOrErr).has_value()) ? **NextTripleOrErr : "";
} // End of processing of all bundle entries of this child of input archive.
} // End of while over children of input archive.

View File

@ -156,7 +156,7 @@ void Scope::updateNRVOCandidate(VarDecl *VD) {
void Scope::applyNRVO() {
// There is no NRVO candidate in the current scope.
if (!NRVO.hasValue())
if (!NRVO.has_value())
return;
if (*NRVO && isDeclScope(*NRVO))

View File

@ -233,7 +233,7 @@ void RISCVIntrinsicManagerImpl::InitIntrinsicList() {
RVVType::computeTypes(BaseType, Log2LMUL, Record.NF, ProtoSeq);
// Ignored to create new intrinsic if there are any illegal types.
if (!Types.hasValue())
if (!Types.has_value())
continue;
std::string SuffixStr =