Mesa (master): glsl: Replace assert with unreachable
Ian Romanick
idr at kemper.freedesktop.org
Mon Oct 17 18:32:30 UTC 2016
Module: Mesa
Branch: master
Commit: fde48c1262161ea809fa63527dca55f781fda771
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fde48c1262161ea809fa63527dca55f781fda771
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Fri Sep 2 13:15:24 2016 -0700
glsl: Replace assert with unreachable
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Engestrom <eric at engestrom.ch>
---
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 efb728b..cdbe184 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");
}
}
}
More information about the mesa-commit
mailing list