glsl: Replace assert with unreachable

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
This commit is contained in:
Ian Romanick 2016-09-02 13:15:24 -07:00
parent 696f5c1853
commit fde48c1262
1 changed files with 2 additions and 1 deletions

View File

@ -478,7 +478,8 @@ void ir_print_visitor::visit(ir_constant *ir)
else
fprintf(f, "%f", ir->value.d[i]);
break;
default: assert(0);
default:
unreachable("Invalid constant type");
}
}
}