diff options
author | Marek Olšák <[email protected]> | 2016-10-07 19:17:15 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-10-31 11:53:38 +0100 |
commit | a4a93103fb8f5c21c4cd17e89f07badfab14c0ab (patch) | |
tree | 872591f19289352b83b2b7f8aef1fc0cebb00294 /src/compiler/glsl/glsl_parser_extras.cpp | |
parent | 2296bb09675e2031d75e11a96bf1ab0d0cc4bd38 (diff) |
glsl: use the linear allocator for ast_node and derived classes
Tested-by: Edmondo Tommasina <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glsl_parser_extras.cpp')
-rw-r--r-- | src/compiler/glsl/glsl_parser_extras.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl_parser_extras.cpp index 48c90200005..db659adf3e0 100644 --- a/src/compiler/glsl/glsl_parser_extras.cpp +++ b/src/compiler/glsl/glsl_parser_extras.cpp @@ -1635,7 +1635,7 @@ ast_struct_specifier::print(void) const } -ast_struct_specifier::ast_struct_specifier(const char *identifier, +ast_struct_specifier::ast_struct_specifier(void *lin_ctx, const char *identifier, ast_declarator_list *declarator_list) { if (identifier == NULL) { @@ -1647,7 +1647,7 @@ ast_struct_specifier::ast_struct_specifier(const char *identifier, count = anon_count++; mtx_unlock(&mutex); - identifier = ralloc_asprintf(this, "#anon_struct_%04x", count); + identifier = linear_asprintf(lin_ctx, "#anon_struct_%04x", count); } name = identifier; this->declarations.push_degenerate_list_at_head(&declarator_list->link); |