mirror of
https://github.com/keystone-engine/keystone
synced 2026-06-08 15:15:30 +00:00
fixed Mips 'jal imm' segmentation fault (#294)
This commit is contained in:
committed by
Nguyen Anh Quynh
parent
51ea7aff4e
commit
35accb128f
@@ -1691,7 +1691,7 @@ bool MipsAsmParser::processInstruction(MCInst &Inst, SMLoc IDLoc,
|
||||
// This expansion is not in a function called by tryExpandInstruction()
|
||||
// because the pseudo-instruction doesn't have a distinct opcode.
|
||||
if ((Inst.getOpcode() == Mips::JAL || Inst.getOpcode() == Mips::JAL_MM) &&
|
||||
inPicMode()) {
|
||||
inPicMode() && Inst.getOperand(0).isExpr()) {
|
||||
warnIfNoMacro(IDLoc);
|
||||
|
||||
const MCExpr *JalExpr = Inst.getOperand(0).getExpr();
|
||||
|
||||
Reference in New Issue
Block a user