forked from OSchip/llvm-project
[clang] Use has_value instead of value (NFC)
This commit is contained in:
parent
f473558647
commit
a948117088
|
@ -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.
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue