summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2018-10-30 05:36:02 -0700
committerMatt Turner <[email protected]>2018-11-27 22:29:53 -0800
commit6f737b9207b49c6775355ae11e043a94e60ae3cf (patch)
treefdba3cb4deacd307f16ab30dd662b912264355ba
parent1a210268b85fc4e4f3896d41cd889a9f88455542 (diff)
glsl: Remove unused member variable
Reviewed-by: Tapani Pälli <[email protected]>
-rw-r--r--src/compiler/glsl/glsl_to_nir.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp
index 9f73b721e39..55628dd2ccd 100644
--- a/src/compiler/glsl/glsl_to_nir.cpp
+++ b/src/compiler/glsl/glsl_to_nir.cpp
@@ -97,8 +97,6 @@ private:
/* most recent deref instruction created */
nir_deref_instr *deref;
- nir_variable *var; /* variable created by ir_variable visitor */
-
/* whether the IR we're operating on is per-function or global */
bool is_global;
@@ -180,7 +178,6 @@ nir_visitor::nir_visitor(nir_shader *shader)
_mesa_key_pointer_equal);
this->result = NULL;
this->impl = NULL;
- this->var = NULL;
memset(&this->b, 0, sizeof(this->b));
}
@@ -454,7 +451,6 @@ nir_visitor::visit(ir_variable *ir)
nir_shader_add_variable(shader, var);
_mesa_hash_table_insert(var_table, ir, var);
- this->var = var;
}
ir_visitor_status