From: Ian Romanick <ian.d.roman...@intel.com> For some reason the spurious initializer "this->loop = loop;" was added in 0c005bd7. Since the constructor has no loop parameter, this initializes the loop field to itself. Instead, initialize it to NULL.
Signed-off-by: Ian Romanick <ian.d.roman...@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51574 Cc: Eric Anholt <e...@anholt.net> Cc: tha...@chromium.org --- src/glsl/ir.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/glsl/ir.h b/src/glsl/ir.h index 505d2e7..712dac1 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -1242,10 +1242,10 @@ public: }; ir_loop_jump(jump_mode mode) + : loop(NULL) { this->ir_type = ir_type_loop_jump; this->mode = mode; - this->loop = loop; } virtual ir_loop_jump *clone(void *mem_ctx, struct hash_table *) const; -- 1.7.6.5 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev