Fix UBSan bootstrap: replace shift of negative value with multiplication.

llvm-svn: 224752
This commit is contained in:
Alexey Samsonov 2014-12-23 04:15:53 +00:00
parent a274728398
commit 2c55974da5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }