File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/lib/Target/RISCV/AsmParser Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2156,17 +2156,17 @@ ParseStatus RISCVAsmParser::parsePseudoQCJumpSymbol(OperandVector &Operands) {
21562156 return ParseStatus::NoMatch;
21572157
21582158 std::string Identifier (getTok ().getIdentifier ());
2159- SMLoc E = SMLoc::getFromPointer (S. getPointer () + Identifier. size () );
2159+ SMLoc E = getTok (). getEndLoc ( );
21602160
21612161 if (getLexer ().peekTok ().is (AsmToken::At)) {
21622162 Lex ();
21632163 Lex ();
21642164 SMLoc PLTLoc = getLoc ();
21652165 StringRef PLT;
2166+ E = getTok ().getEndLoc ();
21662167 if (getParser ().parseIdentifier (PLT) || PLT != " plt" )
21672168 return Error (PLTLoc,
21682169 " '@plt' is the only valid operand for this instruction" );
2169- E = SMLoc::getFromPointer (S.getPointer () + /* @plt*/ 4 );
21702170 } else {
21712171 Lex ();
21722172 }
You can’t perform that action at this time.
0 commit comments