diff options
author | Jan Ziak <[email protected]> | 2016-07-29 13:56:00 +0200 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-07-29 14:57:51 -0400 |
commit | 427771d1c71bfc43553d5e4b8a0683951b0b8d7a (patch) | |
tree | a0e6aa2ad45fb5afb1518cda33dd9e983afcdf64 | |
parent | b107169eef92e740180df468d1eae4cc61a52757 (diff) |
glsl: fix uninitialized instance variable
Valgrind detected that variable ir_copy_propagation_visitor::killed_all
is uninitialized.
Signed-off-by: Jan Ziak (http://atom-symbol.net) <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
-rw-r--r-- | src/compiler/glsl/opt_copy_propagation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/opt_copy_propagation.cpp b/src/compiler/glsl/opt_copy_propagation.cpp index 807ba8f5738..443905d8837 100644 --- a/src/compiler/glsl/opt_copy_propagation.cpp +++ b/src/compiler/glsl/opt_copy_propagation.cpp @@ -76,6 +76,7 @@ public: mem_ctx = ralloc_context(0); this->acp = new(mem_ctx) exec_list; this->kills = new(mem_ctx) exec_list; + killed_all = false; } ~ir_copy_propagation_visitor() { |