diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-12-23 04:15:53 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-12-23 04:15:53 +0000 |
commit | 2c55974da59db63db5835ea7f4b2ed1f64afc954 (patch) | |
tree | f3ca19bb47079f1f1ec5fed78a1c428406e3c5bf | |
parent | a274728398f416322f5d07435c6b0bdf412652f7 (diff) | |
download | bcm5719-llvm-2c55974da59db63db5835ea7f4b2ed1f64afc954.tar.gz bcm5719-llvm-2c55974da59db63db5835ea7f4b2ed1f64afc954.zip |
Fix UBSan bootstrap: replace shift of negative value with multiplication.
llvm-svn: 224752
-rw-r--r-- | llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp b/llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp index e5355ef4333..1b955f59dcf 100644 --- a/llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp +++ b/llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp @@ -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; } |