r306850 - [X86] Add a break to the last case of a few switches to prevent accidents in the future. NFC
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 30 11:14:03 PDT 2017
Author: ctopper
Date: Fri Jun 30 11:14:02 2017
New Revision: 306850
URL: http://llvm.org/viewvc/llvm-project?rev=306850&view=rev
Log:
[X86] Add a break to the last case of a few switches to prevent accidents in the future. NFC
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=306850&r1=306849&r2=306850&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Fri Jun 30 11:14:02 2017
@@ -3545,6 +3545,7 @@ void X86TargetInfo::setSSELevel(llvm::St
Features["avx512pf"] = Features["avx512dq"] = Features["avx512bw"] =
Features["avx512vl"] = Features["avx512vbmi"] =
Features["avx512ifma"] = Features["avx512vpopcntdq"] = false;
+ break;
}
}
@@ -3577,6 +3578,7 @@ void X86TargetInfo::setMMXLevel(llvm::St
LLVM_FALLTHROUGH;
case AMD3DNowAthlon:
Features["3dnowa"] = false;
+ break;
}
}
@@ -3611,6 +3613,7 @@ void X86TargetInfo::setXOPLevel(llvm::St
LLVM_FALLTHROUGH;
case XOP:
Features["xop"] = false;
+ break;
}
}
@@ -4180,6 +4183,7 @@ void X86TargetInfo::getTargetDefines(con
break;
default:
Builder.defineMacro("_M_IX86_FP", Twine(0));
+ break;
}
}
More information about the cfe-commits
mailing list