mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 16:37:42 +00:00
Fix UBSan bootstrap: replace shift of negative value with multiplication.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224752 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
acd25d2481
commit
2f6ad0c00f
@ -1614,7 +1614,7 @@ static DecodeStatus DecodeSimm9SP(MCInst &Inst, unsigned Insn,
|
||||
case 511: DecodedValue = -257; break;
|
||||
default: DecodedValue = SignExtend32<9>(Insn); break;
|
||||
}
|
||||
Inst.addOperand(MCOperand::CreateImm(DecodedValue << 2));
|
||||
Inst.addOperand(MCOperand::CreateImm(DecodedValue * 4));
|
||||
return MCDisassembler::Success;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user