Skip to content

Commit 7c265e9

Browse files
committed
[RISCV] Replace std::optional::value() with operator*. NFC
1 parent b8b90c2 commit 7c265e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/TargetParser/RISCVISAInfo.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ void RISCVISAInfo::updateImplication() {
880880
// implied
881881
if (!HasE && !HasI) {
882882
auto Version = findDefaultVersion("i");
883-
addExtension("i", Version.value());
883+
addExtension("i", *Version);
884884
}
885885

886886
if (HasE && HasI)
@@ -906,7 +906,7 @@ void RISCVISAInfo::updateImplication() {
906906
if (Exts.count(ImpliedExt))
907907
return;
908908
auto Version = findDefaultVersion(ImpliedExt);
909-
addExtension(ImpliedExt, Version.value());
909+
addExtension(ImpliedExt, *Version);
910910
WorkList.insert(ImpliedExt);
911911
});
912912
}
@@ -915,7 +915,7 @@ void RISCVISAInfo::updateImplication() {
915915
if (XLen == 32 && Exts.count("zce") && Exts.count("f") &&
916916
!Exts.count("zcf")) {
917917
auto Version = findDefaultVersion("zcf");
918-
addExtension("zcf", Version.value());
918+
addExtension("zcf", *Version);
919919
}
920920
}
921921

@@ -942,7 +942,7 @@ void RISCVISAInfo::updateCombination() {
942942
});
943943
if (HasAllRequiredFeatures) {
944944
auto Version = findDefaultVersion(CombineExt);
945-
addExtension(CombineExt, Version.value());
945+
addExtension(CombineExt, *Version);
946946
MadeChange = true;
947947
}
948948
}

0 commit comments

Comments
 (0)