ir_constant_expression: Assert that both operands share a base type.

This commit is contained in:
Kenneth Graunke 2010-07-06 02:39:57 -07:00 committed by Ian Romanick
parent 6bc432e14e
commit 6fc983b9bb

View file

@ -141,6 +141,9 @@ ir_constant_visitor::visit(ir_expression *ir)
return;
}
if (op[1] != NULL)
assert(op[0]->type->base_type == op[1]->type->base_type);
switch (ir->operation) {
case ir_unop_logic_not:
assert(op[0]->type->base_type == GLSL_TYPE_BOOL);