glsl: Replace assert with unreachable
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 2 Sep 2016 20:15:24 +0000 (13:15 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 17 Oct 2016 18:32:03 +0000 (11:32 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
src/compiler/glsl/ir_print_visitor.cpp

index efb728b1662186deda0dfdae3cab1347cb3b142e..cdbe18476a7c124ef0134e74e4b7aa19008818c0 100644 (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");
         }
       }
    }