From f4c21ab8b32d57d6db643b5f230b8ceb7b06c84c Mon Sep 17 00:00:00 2001 From: Slava Gurevich Date: Wed, 10 Aug 2022 12:52:09 -0700 Subject: [PATCH] [LLDB][NFC] Clean up dead code Remove unreachable code that will never execute. Differential Revision: https://reviews.llvm.org/D131613 --- .../Plugins/Instruction/ARM/EmulateInstructionARM.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp b/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp index b00a17736679..103551da2857 100644 --- a/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp +++ b/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp @@ -3769,10 +3769,6 @@ bool EmulateInstructionARM::EmulateShiftImm(const uint32_t opcode, switch (use_encoding) { case eEncodingT1: - // Due to the above special case handling! - if (shift_type == SRType_ROR) - return false; - Rd = Bits32(opcode, 2, 0); Rm = Bits32(opcode, 5, 3); setflags = !InITBlock(); @@ -4139,8 +4135,6 @@ bool EmulateInstructionARM::EmulateLDMDA(const uint32_t opcode, // if wback && registers == '0' then R[n] = R[n] - 4*BitCount(registers); if (wback && BitIsClear(registers, n)) { - if (!success) - return false; offset = (addr_byte_size * BitCount(registers)) * -1; context.type = EmulateInstruction::eContextAdjustBaseRegister; @@ -4277,8 +4271,6 @@ bool EmulateInstructionARM::EmulateLDMDB(const uint32_t opcode, // if wback && registers == '0' then R[n] = R[n] - 4*BitCount(registers); if (wback && BitIsClear(registers, n)) { - if (!success) - return false; offset = (addr_byte_size * BitCount(registers)) * -1; context.type = EmulateInstruction::eContextAdjustBaseRegister; @@ -4391,8 +4383,6 @@ bool EmulateInstructionARM::EmulateLDMIB(const uint32_t opcode, // if wback && registers == '0' then R[n] = R[n] + 4*BitCount(registers); if (wback && BitIsClear(registers, n)) { - if (!success) - return false; offset = addr_byte_size * BitCount(registers); context.type = EmulateInstruction::eContextAdjustBaseRegister;