From: Craig Topper Date: Fri, 30 Jun 2017 18:14:02 +0000 (+0000) Subject: [X86] Add a break to the last case of a few switches to prevent accidents in the... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9dd68b7525f9b8b30923b6b23f5b4fba33aec7a2;p=clang [X86] Add a break to the last case of a few switches to prevent accidents in the future. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306850 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index c8326ab273..52646ae83b 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -3545,6 +3545,7 @@ void X86TargetInfo::setSSELevel(llvm::StringMap &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 &Features, LLVM_FALLTHROUGH; case AMD3DNowAthlon: Features["3dnowa"] = false; + break; } } @@ -3611,6 +3613,7 @@ void X86TargetInfo::setXOPLevel(llvm::StringMap &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; } }