Set correct type for ir_dereference of a matrix or a vector

This commit is contained in:
Ian Romanick
2010-04-05 10:30:15 -07:00
parent 0157f41e5e
commit b2deb19dc3

4
ir.cpp
View File

@@ -186,7 +186,9 @@ ir_dereference::ir_dereference(ir_instruction *var,
if (vt->is_array()) { if (vt->is_array()) {
type = vt->element_type(); type = vt->element_type();
} else if (vt->is_matrix() || vt->is_vector()) { } else if (vt->is_matrix()) {
type = vt->column_type();
} else if (vt->is_vector()) {
type = vt->get_base_type(); type = vt->get_base_type();
} }
} }