Skip to content

Commit bf91252

Browse files
committed
[RISCV] Remove unnecessary call to isSupportedExtensionFeature.
hasExtension already checks if the extension is supported.
1 parent cc4ecfd commit bf91252

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/lib/Basic/Targets/RISCV.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,7 @@ bool RISCVTargetInfo::hasFeature(StringRef Feature) const {
347347
if (Result)
348348
return *Result;
349349

350-
if (ISAInfo->isSupportedExtensionFeature(Feature))
351-
return ISAInfo->hasExtension(Feature);
352-
353-
return false;
350+
return ISAInfo->hasExtension(Feature);
354351
}
355352

356353
/// Perform initialization based on the user configured set of features.

0 commit comments

Comments
 (0)