Skip to content

Commit d6f2a01

Browse files
committed
--- Merging r113255 into '.': U lib/Target/ARM/Disassembler/ARMDisassemblerCore.h $ svn merge -c 113345 https://llvm.org/svn/llvm-project/llvm/trunk --- Merging r113345 into '.': U lib/Target/ARM/Disassembler/ARMDisassembler.cpp llvm-svn: 113353
1 parent c9a2cd0 commit d6f2a01

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ static unsigned T2Morph2LoadLiteral(unsigned Opcode) {
298298
/// decodeInstruction(insn) is invoked on the original insn.
299299
///
300300
/// Otherwise, decodeThumbInstruction is called with the original insn.
301-
static unsigned decodeThumbSideEffect(bool IsThumb2, uint32_t &insn) {
301+
static unsigned decodeThumbSideEffect(bool IsThumb2, unsigned &insn) {
302302
if (IsThumb2) {
303303
uint16_t op1 = slice(insn, 28, 27);
304304
uint16_t op2 = slice(insn, 26, 20);
@@ -436,7 +436,7 @@ bool ThumbDisassembler::getInstruction(MCInst &MI,
436436
// passed to decodeThumbInstruction(). For 16-bit Thumb instruction, the top
437437
// halfword of insn is 0x00 0x00; otherwise, the first halfword is moved to
438438
// the top half followed by the second halfword.
439-
uint32_t insn = 0;
439+
unsigned insn = 0;
440440
// Possible second halfword.
441441
uint16_t insn1 = 0;
442442

llvm/lib/Target/ARM/Disassembler/ARMDisassemblerCore.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ static inline unsigned slice(uint32_t Bits, unsigned From, unsigned To) {
126126
}
127127

128128
/// Utility function for setting [From, To] bits to Val for a uint32_t.
129-
static inline void setSlice(uint32_t &Bits, unsigned From, unsigned To,
130-
uint32_t Val) {
129+
static inline void setSlice(unsigned &Bits, unsigned From, unsigned To,
130+
unsigned Val) {
131131
assert(From < 32 && To < 32 && From >= To);
132132
uint32_t Mask = ((1 << (From - To + 1)) - 1);
133133
Bits &= ~(Mask << To);

0 commit comments

Comments
 (0)