aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2023-12-09 14:16:09 -0800
committerCraig Topper <craig.topper@sifive.com>2023-12-09 14:38:03 -0800
commitbf9125294da1f3cf03a88356e068725c6f88bea6 (patch)
treefe741c78bbf6e386d4b2a903b862124733d6ce91
parentcc4ecfd68b79a44f101fe9924d088a83477797c0 (diff)
downloadllvm-bf9125294da1f3cf03a88356e068725c6f88bea6.zip
llvm-bf9125294da1f3cf03a88356e068725c6f88bea6.tar.gz
llvm-bf9125294da1f3cf03a88356e068725c6f88bea6.tar.bz2
[RISCV] Remove unnecessary call to isSupportedExtensionFeature.
hasExtension already checks if the extension is supported.
-rw-r--r--clang/lib/Basic/Targets/RISCV.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Basic/Targets/RISCV.cpp b/clang/lib/Basic/Targets/RISCV.cpp
index 1a4300e..b1733b8 100644
--- a/clang/lib/Basic/Targets/RISCV.cpp
+++ b/clang/lib/Basic/Targets/RISCV.cpp
@@ -347,10 +347,7 @@ bool RISCVTargetInfo::hasFeature(StringRef Feature) const {
if (Result)
return *Result;
- if (ISAInfo->isSupportedExtensionFeature(Feature))
- return ISAInfo->hasExtension(Feature);
-
- return false;
+ return ISAInfo->hasExtension(Feature);
}
/// Perform initialization based on the user configured set of features.