diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2013-01-15 17:29:21 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2013-01-24 21:24:10 -0800 |
commit | fafcbf52b7a45494e11488eb37d1e0b036ac8e4b (patch) | |
tree | b4aaa822b38d77a3622a778b711dee03120fa625 | |
parent | 542c7a30224211de8d7df5025a5308559f33197b (diff) | |
download | external_mesa3d-fafcbf52b7a45494e11488eb37d1e0b036ac8e4b.zip external_mesa3d-fafcbf52b7a45494e11488eb37d1e0b036ac8e4b.tar.gz external_mesa3d-fafcbf52b7a45494e11488eb37d1e0b036ac8e4b.tar.bz2 |
glsl/ir_factory: Initialize members to NULL in constructor
This eliminates unexpected behavior due to unitialized values.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r-- | src/glsl/ir_builder.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h index 067858d..278294f 100644 --- a/src/glsl/ir_builder.h +++ b/src/glsl/ir_builder.h @@ -73,6 +73,13 @@ public: class ir_factory { public: + ir_factory() + : instructions(NULL), + mem_ctx(NULL) + { + return; + } + void emit(ir_instruction *ir); ir_variable *make_temp(const glsl_type *type, const char *name); |