]> granicus.if.org Git - clang/commitdiff
[X86] Add a break to the last case of a few switches to prevent accidents in the...
authorCraig Topper <craig.topper@intel.com>
Fri, 30 Jun 2017 18:14:02 +0000 (18:14 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 30 Jun 2017 18:14:02 +0000 (18:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306850 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index c8326ab2736ca41064be55039f89b77fa9887632..52646ae83b2eeecce47e24e5795a1429ac038cbd 100644 (file)
@@ -3545,6 +3545,7 @@ void X86TargetInfo::setSSELevel(llvm::StringMap<bool> &Features,
         Features["avx512pf"] = Features["avx512dq"] = Features["avx512bw"] =
             Features["avx512vl"] = Features["avx512vbmi"] =
                 Features["avx512ifma"] = Features["avx512vpopcntdq"] = false;
+    break;
   }
 }
 
@@ -3577,6 +3578,7 @@ void X86TargetInfo::setMMXLevel(llvm::StringMap<bool> &Features,
     LLVM_FALLTHROUGH;
   case AMD3DNowAthlon:
     Features["3dnowa"] = false;
+    break;
   }
 }
 
@@ -3611,6 +3613,7 @@ void X86TargetInfo::setXOPLevel(llvm::StringMap<bool> &Features, XOPEnum Level,
     LLVM_FALLTHROUGH;
   case XOP:
     Features["xop"] = false;
+    break;
   }
 }
 
@@ -4180,6 +4183,7 @@ void X86TargetInfo::getTargetDefines(const LangOptions &Opts,
       break;
     default:
       Builder.defineMacro("_M_IX86_FP", Twine(0));
+      break;
     }
   }