Fix UBSan bootstrap: replace shift of negative value with multiplication.
llvm-svn: 224752
This commit is contained in:
parent
a274728398
commit
2c55974da5
|
@ -1614,7 +1614,7 @@ static DecodeStatus DecodeSimm9SP(MCInst &Inst, unsigned Insn,
|
||||||
case 511: DecodedValue = -257; break;
|
case 511: DecodedValue = -257; break;
|
||||||
default: DecodedValue = SignExtend32<9>(Insn); break;
|
default: DecodedValue = SignExtend32<9>(Insn); break;
|
||||||
}
|
}
|
||||||
Inst.addOperand(MCOperand::CreateImm(DecodedValue << 2));
|
Inst.addOperand(MCOperand::CreateImm(DecodedValue * 4));
|
||||||
return MCDisassembler::Success;
|
return MCDisassembler::Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue