[Assembler] Fix issue in RV32I ret pseudo op
MODIFY
src/assembler/rv32i_assembler.cpp
src/assembler/rv32i_assembler.cpp
@@ -189,8 +189,8 @@ void RV32I_Assembler::enableExtI(RVInstrVec& instructions, RVPseudoInstrVec& pse
return v;
})));
- pseudoInstructions.push_back(std::shared_ptr<RVPseudoInstr>(new RVPseudoInstr(
- "ret", {RVPseudoInstr::reg()}, [](const RVPseudoInstr&, const AssemblerTmp::TokenizedSrcLine&) {
+ pseudoInstructions.push_back(std::shared_ptr<RVPseudoInstr>(
+ new RVPseudoInstr("ret", {}, [](const RVPseudoInstr&, const AssemblerTmp::TokenizedSrcLine&) {
std::vector<AssemblerTmp::LineTokens> v;
v.push_back(QStringList() << "jalr"
<< "x0"

[Assembler] Fix issue in RV32I ret pseudo op