From: Ian Romanick Date: Fri, 2 Sep 2016 20:15:24 +0000 (-0700) Subject: glsl: Replace assert with unreachable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fde48c1262161ea809fa63527dca55f781fda771;p=mesa.git glsl: Replace assert with unreachable Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke Reviewed-by: Eric Engestrom --- diff --git a/src/compiler/glsl/ir_print_visitor.cpp b/src/compiler/glsl/ir_print_visitor.cpp index efb728b1662..cdbe18476a7 100644 --- a/src/compiler/glsl/ir_print_visitor.cpp +++ b/src/compiler/glsl/ir_print_visitor.cpp @@ -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"); } } }