[Lldb-commits] [lldb] r220025 - Add #if 0 around unreachable block of code to suppress warnings.

Jason Molenda jmolenda at apple.com
Thu Oct 16 18:56:57 PDT 2014


Author: jmolenda
Date: Thu Oct 16 20:56:57 2014
New Revision: 220025

URL: http://llvm.org/viewvc/llvm-project?rev=220025&view=rev
Log:
Add #if 0 around unreachable block of code to suppress warnings.
clang warnings.

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=220025&r1=220024&r2=220025&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp (original)
+++ lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp Thu Oct 16 20:56:57 2014
@@ -9873,12 +9873,14 @@ EmulateInstructionARM::EmulateSTREX (con
             if (!WriteRegisterUnsigned (context, eRegisterKindDWARF, dwarf_r0 + t, 0))
                 return false;
         }
+#if 0 // unreachable because if true
         else
         {
             // R[d] = 1;
             if (!WriteRegisterUnsigned (context, eRegisterKindDWARF, dwarf_r0 + t, 1))
                 return false;
         }
+#endif // unreachable because if true
     }
     return true;
 }





More information about the lldb-commits mailing list