[Lldb-commits] [lldb] r125531 - /lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp

Johnny Chen johnny.chen at apple.com
Mon Feb 14 15:21:24 PST 2011


Author: johnny
Date: Mon Feb 14 17:21:24 2011
New Revision: 125531

URL: http://llvm.org/viewvc/llvm-project?rev=125531&view=rev
Log:
Fix build warning (unused variable).

Modified:
    lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp

Modified: lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp?rev=125531&r1=125530&r2=125531&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp (original)
+++ lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp Mon Feb 14 17:21:24 2011
@@ -2850,10 +2850,6 @@
         //     MemA[address,4] = PCStoreValue();
         if (BitIsSet (registers, 15))
         {
-            const addr_t sp = ReadRegisterUnsigned (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_SP, 0, &success);
-            if (!success)
-                return false;
-
             Register pc_reg;
             pc_reg.SetRegister (eRegisterKindDWARF, dwarf_pc);
             context.SetRegisterPlusOffset (pc_reg, 8);





More information about the lldb-commits mailing list