i965: Fix use of undefined mem_ctx in vector splitting.

This commit is contained in:
Eric Anholt 2010-09-29 15:19:52 -07:00
parent e3ccfd4e03
commit 3da98c1ca5

View file

@ -212,7 +212,6 @@ public:
struct variable_entry *get_splitting_entry(ir_variable *var);
exec_list *variable_list;
void *mem_ctx;
};
struct variable_entry *
@ -300,6 +299,7 @@ ir_vector_splitting_visitor::visit_leave(ir_assignment *ir)
}
ir->remove();
} else if (lhs) {
void *mem_ctx = lhs->mem_ctx;
int elem = -1;
switch (ir->write_mask) {