Set correct type for ir_dereference of a matrix or a vector
This commit is contained in:
4
ir.cpp
4
ir.cpp
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user