nv50/ir: don't assert on type in Modifier.applyTo if it is 0
This commit is contained in:
parent
c3a5bc0bdf
commit
a788be19e5
|
@ -324,6 +324,8 @@ ConstantFolding::findOriginForTestWithZero(Value *value)
|
|||
void
|
||||
Modifier::applyTo(ImmediateValue& imm) const
|
||||
{
|
||||
if (!bits) // avoid failure if imm.reg.type is unhandled (e.g. b128)
|
||||
return;
|
||||
switch (imm.reg.type) {
|
||||
case TYPE_F32:
|
||||
if (bits & NV50_IR_MOD_ABS)
|
||||
|
|
Loading…
Reference in New Issue