diff options
author | Ian Romanick <[email protected]> | 2016-09-02 13:15:24 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-10-17 11:32:03 -0700 |
commit | fde48c1262161ea809fa63527dca55f781fda771 (patch) | |
tree | fca2a2c1a5efce2d8809b04e121c1a76d94b5eac /src | |
parent | 696f5c1853df39359b9dbd733f4c2a1177481556 (diff) |
glsl: Replace assert with unreachable
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/glsl/ir_print_visitor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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"); } } } |