mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Replace a couple asserts with static_asserts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222114 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -122,7 +122,7 @@ public:
|
||||
explicit DAGTypeLegalizer(SelectionDAG &dag)
|
||||
: TLI(dag.getTargetLoweringInfo()), DAG(dag),
|
||||
ValueTypeActions(TLI.getValueTypeActions()) {
|
||||
assert(MVT::LAST_VALUETYPE <= MVT::MAX_ALLOWED_VALUETYPE &&
|
||||
static_assert(MVT::LAST_VALUETYPE <= MVT::MAX_ALLOWED_VALUETYPE,
|
||||
"Too many value types for ValueTypeActions to hold!");
|
||||
}
|
||||
|
||||
|
@@ -1039,7 +1039,7 @@ 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 &&
|
||||
static_assert(MVT::LAST_VALUETYPE <= MVT::MAX_ALLOWED_VALUETYPE,
|
||||
"Too many value types for ValueTypeActions to hold!");
|
||||
|
||||
// Everything defaults to needing one register.
|
||||
|
Reference in New Issue
Block a user