[Lldb-commits] [lldb] r215894 - add missing break. Fix CID 1229446 & 1203680

Sylvestre Ledru sylvestre at debian.org
Mon Aug 18 07:53:43 PDT 2014


Author: sylvestre
Date: Mon Aug 18 09:53:42 2014
New Revision: 215894

URL: http://llvm.org/viewvc/llvm-project?rev=215894&view=rev
Log:
add missing break. Fix CID 1229446 & 1203680

Modified:
    lldb/trunk/source/Core/ArchSpec.cpp

Modified: lldb/trunk/source/Core/ArchSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ArchSpec.cpp?rev=215894&r1=215893&r2=215894&view=diff
==============================================================================
--- lldb/trunk/source/Core/ArchSpec.cpp (original)
+++ lldb/trunk/source/Core/ArchSpec.cpp Mon Aug 18 09:53:42 2014
@@ -931,7 +931,7 @@ cores_match (const ArchSpec::Core core1,
         if (core2 == ArchSpec::kCore_arm_any)
             return true;
         break;
-    
+
     case ArchSpec::kCore_x86_32_any:
         if ((core2 >= ArchSpec::kCore_x86_32_first && core2 <= ArchSpec::kCore_x86_32_last) || (core2 == ArchSpec::kCore_x86_32_any))
             return true;
@@ -940,12 +940,13 @@ cores_match (const ArchSpec::Core core1,
     case ArchSpec::kCore_x86_64_any:
         if ((core2 >= ArchSpec::kCore_x86_64_first && core2 <= ArchSpec::kCore_x86_64_last) || (core2 == ArchSpec::kCore_x86_64_any))
             return true;
+        break;
 
     case ArchSpec::kCore_ppc_any:
         if ((core2 >= ArchSpec::kCore_ppc_first && core2 <= ArchSpec::kCore_ppc_last) || (core2 == ArchSpec::kCore_ppc_any))
             return true;
         break;
-        
+
     case ArchSpec::kCore_ppc64_any:
         if ((core2 >= ArchSpec::kCore_ppc64_first && core2 <= ArchSpec::kCore_ppc64_last) || (core2 == ArchSpec::kCore_ppc64_any))
             return true;
@@ -960,6 +961,7 @@ cores_match (const ArchSpec::Core core1,
             if (core2 == ArchSpec::eCore_arm_armv7)
                 return true;
         }
+        break;
 
     case ArchSpec::kCore_hexagon_any:
         if ((core2 >= ArchSpec::kCore_hexagon_first && core2 <= ArchSpec::kCore_hexagon_last) || (core2 == ArchSpec::kCore_hexagon_any))
@@ -980,7 +982,7 @@ cores_match (const ArchSpec::Core core1,
             try_inverse = false;
         }
         break;
-            
+
     case ArchSpec::eCore_x86_64_x86_64h:
         if (!enforce_exact_match)
         {





More information about the lldb-commits mailing list