ir_constant_expression: Initialize op[0] and op[1] to NULL.
This makes it easy to check if there is a second argument.
This commit is contained in:

committed by
Ian Romanick

parent
c63a1db81f
commit
6bc432e14e
@@ -129,7 +129,7 @@ void
|
||||
ir_constant_visitor::visit(ir_expression *ir)
|
||||
{
|
||||
value = NULL;
|
||||
ir_constant *op[2];
|
||||
ir_constant *op[2] = { NULL, NULL };
|
||||
unsigned int operand, c;
|
||||
ir_constant_data data;
|
||||
|
||||
|
Reference in New Issue
Block a user