[Mesa-dev] [PATCH 1/4] glsl: Replace assert with unreachable
Ian Romanick
idr at freedesktop.org
Fri Oct 14 18:59:44 UTC 2016
From: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/compiler/glsl/ir_print_visitor.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/compiler/glsl/ir_print_visitor.cpp b/src/compiler/glsl/ir_print_visitor.cpp
index c238c16..1299bfb 100644
--- a/src/compiler/glsl/ir_print_visitor.cpp
+++ b/src/compiler/glsl/ir_print_visitor.cpp
@@ -474,7 +474,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");
}
}
}
--
2.5.5
More information about the mesa-dev
mailing list