nv50/ir: don't assert on type in Modifier.applyTo if it is 0

This commit is contained in:
Christoph Bumiller 2013-02-24 18:36:44 +01:00
parent c3a5bc0bdf
commit a788be19e5
1 changed files with 2 additions and 0 deletions

View File

@ -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)