diff options
author | marha <marha@users.sourceforge.net> | 2013-02-08 09:09:10 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-02-08 09:09:10 +0100 |
commit | 212958ab41363d50d87470f6fb47bbcdc7a74c74 (patch) | |
tree | dea209f5df4fe2122e20faa121efe05390c00eb1 /mesalib/src/glsl/loop_analysis.cpp | |
parent | 956c20498738c242726b5a42ed28db8572a90bed (diff) | |
download | vcxsrv-212958ab41363d50d87470f6fb47bbcdc7a74c74.tar.gz vcxsrv-212958ab41363d50d87470f6fb47bbcdc7a74c74.tar.bz2 vcxsrv-212958ab41363d50d87470f6fb47bbcdc7a74c74.zip |
fontconfig mesa git update 8 Feb 2013
fontconfig commit 72b0480a21958f0f8c115d8e0a5bfbd8d358b5c3
mesa commit b681ed6ac970e061e9dbe7309bb69b3a947ae62d
Diffstat (limited to 'mesalib/src/glsl/loop_analysis.cpp')
-rw-r--r-- | mesalib/src/glsl/loop_analysis.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/mesalib/src/glsl/loop_analysis.cpp b/mesalib/src/glsl/loop_analysis.cpp index 6a0e4da51..191e92de7 100644 --- a/mesalib/src/glsl/loop_analysis.cpp +++ b/mesalib/src/glsl/loop_analysis.cpp @@ -105,7 +105,7 @@ loop_variable_state::insert(ir_if *if_stmt) class loop_analysis : public ir_hierarchical_visitor { public: - loop_analysis(); + loop_analysis(loop_state *loops); virtual ir_visitor_status visit(ir_loop_jump *); virtual ir_visitor_status visit(ir_dereference_variable *); @@ -129,12 +129,10 @@ public: }; -loop_analysis::loop_analysis() +loop_analysis::loop_analysis(loop_state *loops) + : loops(loops), if_statement_depth(0), current_assignment(NULL) { - this->loops = new loop_state; - - this->if_statement_depth = 0; - this->current_assignment = NULL; + /* empty */ } @@ -521,7 +519,8 @@ is_loop_terminator(ir_if *ir) loop_state * analyze_loop_variables(exec_list *instructions) { - loop_analysis v; + loop_state *loops = new loop_state; + loop_analysis v(loops); v.run(instructions); return v.loops; |