glsl: make use of glsl_type::is_record()
[mesa.git] / src / compiler / glsl / ir.cpp
index 2bbc7a1cf720f06bcdef5323ae03c3d393b19f09..b5c1fa3391923e3016237b82293cb75782e08dde 100644 (file)
@@ -1237,7 +1237,7 @@ ir_constant::has_value(const ir_constant *c) const
       return true;
    }
 
-   if (this->type->base_type == GLSL_TYPE_STRUCT) {
+   if (this->type->is_record()) {
       const exec_node *a_node = this->components.get_head_raw();
       const exec_node *b_node = c->components.get_head_raw();