Add #if 0 around unreachable block of code to suppress warnings.
authorJason Molenda <jmolenda@apple.com>
Fri, 17 Oct 2014 01:56:57 +0000 (01:56 +0000)
committerJason Molenda <jmolenda@apple.com>
Fri, 17 Oct 2014 01:56:57 +0000 (01:56 +0000)
clang warnings.

llvm-svn: 220025

lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp

index fa8681e..bc358a9 100644 (file)
@@ -9873,12 +9873,14 @@ EmulateInstructionARM::EmulateSTREX (const uint32_t opcode, const ARMEncoding en
             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;
 }