Skip to content

Commit 4026b26

Browse files
committed
[RISCV] Use StringRef instead of string_view in RISCVISAInfo. NFC
This is the only use of string_view in the file. Switch to StringRef for consistency.
1 parent 73e46c2 commit 4026b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/TargetParser/RISCVISAInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ std::vector<std::string> RISCVISAInfo::toFeatures(bool AddAllExtensions,
287287
return Features;
288288
}
289289

290-
static Error getStringErrorForInvalidExt(std::string_view ExtName) {
290+
static Error getStringErrorForInvalidExt(StringRef ExtName) {
291291
if (ExtName.size() == 1) {
292292
return createStringError(errc::invalid_argument,
293293
"unsupported standard user-level extension '" +

0 commit comments

Comments
 (0)