diff options
author | Paul Berry <stereotype441@gmail.com> | 2013-11-28 14:46:38 -0800 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2013-12-09 10:54:53 -0800 |
commit | 4bbf6d1d2b20bccd784a326f33bdb860032db361 (patch) | |
tree | 6de75414e2518d4080fb99a607d981610499559b /src/glsl/loop_analysis.cpp | |
parent | 714e1b331ed1b2dfffac4accb4ebf5a01d3f961f (diff) | |
download | external_mesa3d-4bbf6d1d2b20bccd784a326f33bdb860032db361.zip external_mesa3d-4bbf6d1d2b20bccd784a326f33bdb860032db361.tar.gz external_mesa3d-4bbf6d1d2b20bccd784a326f33bdb860032db361.tar.bz2 |
glsl/loops: Allocate loop_terminator using new(mem_ctx) syntax.
Patches to follow will introduce code into the loop_terminator
constructor. Allocating loop_terminator using new(mem_ctx) syntax
will ensure that the constructor runs.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glsl/loop_analysis.cpp')
-rw-r--r-- | src/glsl/loop_analysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/loop_analysis.cpp b/src/glsl/loop_analysis.cpp index 5619144..302e931 100644 --- a/src/glsl/loop_analysis.cpp +++ b/src/glsl/loop_analysis.cpp @@ -134,7 +134,7 @@ loop_terminator * loop_variable_state::insert(ir_if *if_stmt) { void *mem_ctx = ralloc_parent(this); - loop_terminator *t = rzalloc(mem_ctx, loop_terminator); + loop_terminator *t = new(mem_ctx) loop_terminator(); t->ir = if_stmt; this->terminators.push_tail(t); |