mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Replace a couple asserts with static_asserts.
llvm-svn: 222114
This commit is contained in:
parent
06ecea1ee5
commit
2aa3e27053
@ -122,8 +122,8 @@ public:
|
||||
explicit DAGTypeLegalizer(SelectionDAG &dag)
|
||||
: TLI(dag.getTargetLoweringInfo()), DAG(dag),
|
||||
ValueTypeActions(TLI.getValueTypeActions()) {
|
||||
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!");
|
||||
}
|
||||
|
||||
/// run - This is the main entry point for the type legalizer. This does a
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user