summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-11-17 00:26:50 +0000
committerCraig Topper <craig.topper@gmail.com>2014-11-17 00:26:50 +0000
commit6438fc3d05b885eaeb9bc19869b8ac633d0ed1fe (patch)
tree227b9599d16624ed9d26e90883355e9db44a9842 /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent7031141009b44740bf52ceb5f84e29e7a8184b69 (diff)
downloadbcm5719-llvm-6438fc3d05b885eaeb9bc19869b8ac633d0ed1fe.tar.gz
bcm5719-llvm-6438fc3d05b885eaeb9bc19869b8ac633d0ed1fe.zip
Replace a couple asserts with static_asserts.
llvm-svn: 222114
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index ffb875981fe..e833fd36cc8 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -1039,8 +1039,8 @@ TargetLoweringBase::findRepresentativeClass(MVT VT) const {
/// computeRegisterProperties - Once all of the register classes are added,
/// this allows us to compute derived properties we expose.
void TargetLoweringBase::computeRegisterProperties() {
- assert(MVT::LAST_VALUETYPE <= MVT::MAX_ALLOWED_VALUETYPE &&
- "Too many value types for ValueTypeActions to hold!");
+ static_assert(MVT::LAST_VALUETYPE <= MVT::MAX_ALLOWED_VALUETYPE,
+ "Too many value types for ValueTypeActions to hold!");
// Everything defaults to needing one register.
for (unsigned i = 0; i != MVT::LAST_VALUETYPE; ++i) {
OpenPOWER on IntegriCloud