[Lldb-commits] [lldb] f4c21ab - [LLDB][NFC] Clean up dead code
Slava Gurevich via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 10 15:22:25 PDT 2022
Author: Slava Gurevich
Date: 2022-08-10T15:22:15-07:00
New Revision: f4c21ab8b32d57d6db643b5f230b8ceb7b06c84c
URL: https://github.com/llvm/llvm-project/commit/f4c21ab8b32d57d6db643b5f230b8ceb7b06c84c
DIFF: https://github.com/llvm/llvm-project/commit/f4c21ab8b32d57d6db643b5f230b8ceb7b06c84c.diff
LOG: [LLDB][NFC] Clean up dead code
Remove unreachable code that will never execute.
Differential Revision: https://reviews.llvm.org/D131613
Added:
Modified:
lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp b/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
index b00a177366794..103551da2857c 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<n> == '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<n> == '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<n> == '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;
More information about the lldb-commits
mailing list