mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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:
parent
696f5c1853
commit
fde48c1262
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue