projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b107169
)
glsl: fix uninitialized instance variable
author
Jan Ziak
<0xe2.0x9a.0x9b@gmail.com>
Fri, 29 Jul 2016 11:56:00 +0000
(13:56 +0200)
committer
Rob Clark
<robdclark@gmail.com>
Fri, 29 Jul 2016 18:57:51 +0000
(14:57 -0400)
Valgrind detected that variable ir_copy_propagation_visitor::killed_all
is uninitialized.
Signed-off-by: Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b@gmail.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/compiler/glsl/opt_copy_propagation.cpp
patch
|
blob
|
history
diff --git
a/src/compiler/glsl/opt_copy_propagation.cpp
b/src/compiler/glsl/opt_copy_propagation.cpp
index 807ba8f5738b7e41a6bf0b7de44061732520acf5..443905d8837834845bcaced027f789f8d86917da 100644
(file)
--- 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()
{