mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
glsl2: move constructor into .cpp file to work around compiler bug
Fixes fd.o bug 29770 The refcount==0 assertion only failed on some systems. One example being 32-bit Linux with gcc 4.4.4.
This commit is contained in:
parent
f3ec111b0a
commit
2eb8b2d3bb
2 changed files with 13 additions and 8 deletions
|
|
@ -34,6 +34,18 @@
|
|||
#include "ir_variable_refcount.h"
|
||||
#include "glsl_types.h"
|
||||
|
||||
|
||||
// constructor
|
||||
variable_entry::variable_entry(ir_variable *var)
|
||||
{
|
||||
this->var = var;
|
||||
assign = NULL;
|
||||
assigned_count = 0;
|
||||
declaration = false;
|
||||
referenced_count = 0;
|
||||
}
|
||||
|
||||
|
||||
variable_entry *
|
||||
ir_variable_refcount_visitor::get_variable_entry(ir_variable *var)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -36,14 +36,7 @@
|
|||
class variable_entry : public exec_node
|
||||
{
|
||||
public:
|
||||
variable_entry(ir_variable *var)
|
||||
{
|
||||
this->var = var;
|
||||
assign = NULL;
|
||||
referenced_count = 0;
|
||||
assigned_count = 0;
|
||||
declaration = false;
|
||||
}
|
||||
variable_entry(ir_variable *var);
|
||||
|
||||
ir_variable *var; /* The key: the variable's pointer. */
|
||||
ir_assignment *assign; /* An assignment to the variable, if any */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue