summaryrefslogtreecommitdiffstats
path: root/ir_variable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ir_variable.cpp')
-rw-r--r--ir_variable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir_variable.cpp b/ir_variable.cpp
index efebe9199fa..fabd856591a 100644
--- a/ir_variable.cpp
+++ b/ir_variable.cpp
@@ -35,7 +35,7 @@ add_variable(const char *name, enum ir_variable_mode mode, int slot,
const glsl_type *type, exec_list *instructions,
glsl_symbol_table *symtab)
{
- ir_variable *var = new ir_variable(type, name);
+ ir_variable *var = new(symtab) ir_variable(type, name);
var->mode = mode;
switch (var->mode) {