Skip to content

Commit 066445e

Browse files
author
Yeting Kuo
committed
Remove unneeded rvalue reference.
1 parent 471abce commit 066445e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2827,7 +2827,7 @@ bool RISCVAsmParser::parseDirectiveOption() {
28272827
break;
28282828
}
28292829

2830-
std::string &&Feature = RISCVISAInfo::getTargetFeatureForExtension(Arch);
2830+
std::string Feature = RISCVISAInfo::getTargetFeatureForExtension(Arch);
28312831
if (DisableExperimentalExtension &&
28322832
StringRef(Feature).starts_with("experimental-"))
28332833
return Error(Loc, "Unexpected experimental extensions.");

0 commit comments

Comments
 (0)