diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-06-02 23:07:03 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-06-02 23:07:03 +0000 |
commit | 8a71c0b771527e7f94a37b17f376ab40daa43c75 (patch) | |
tree | 8f5a6e4ed3e8f1d6f182db016a61c07a258e05ee /lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp | |
parent | 6ef2735631dd887bedab721a1ff1ad7c548df6c1 (diff) | |
download | bcm5719-llvm-8a71c0b771527e7f94a37b17f376ab40daa43c75.tar.gz bcm5719-llvm-8a71c0b771527e7f94a37b17f376ab40daa43c75.zip |
Turn the commented-out assert()'s into appropriate bail-out actions.
llvm-svn: 132507
Diffstat (limited to 'lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp')
-rw-r--r-- | lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp b/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp index e9237acac91..04383cc8b22 100644 --- a/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp +++ b/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp @@ -3150,7 +3150,8 @@ EmulateInstructionARM::EmulateShiftImm (const uint32_t opcode, const ARMEncoding switch (use_encoding) { case eEncodingT1: // Due to the above special case handling! - //assert(shift_type != SRType_ROR); + if (shift_type == SRType_ROR) + return false; Rd = Bits32(opcode, 2, 0); Rm = Bits32(opcode, 5, 3); @@ -3159,7 +3160,9 @@ EmulateInstructionARM::EmulateShiftImm (const uint32_t opcode, const ARMEncoding break; case eEncodingT2: // A8.6.141 RRX - //assert(shift_type != SRType_RRX); + // There's no imm form of RRX instructions. + if (shift_type == SRType_RRX) + return false; Rd = Bits32(opcode, 11, 8); Rm = Bits32(opcode, 3, 0); |