diff options
author | Matt Turner <mattst88@gmail.com> | 2015-11-23 14:22:48 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-11-24 10:05:33 -0800 |
commit | 5369efe311475f10b4fd6524710a3b3256856e08 (patch) | |
tree | 994b3e94d3f7a49c060943c2ad21c6f49089d7fa /src/glsl/ast_type.cpp | |
parent | f36993b46962eab4446bc1964eb47149751aee26 (diff) | |
download | external_mesa3d-5369efe311475f10b4fd6524710a3b3256856e08.zip external_mesa3d-5369efe311475f10b4fd6524710a3b3256856e08.tar.gz external_mesa3d-5369efe311475f10b4fd6524710a3b3256856e08.tar.bz2 |
glsl: Pass ast_type_qualifier by const reference.
Coverity noticed that we were passing this by value, and it's 152 bytes.
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/glsl/ast_type.cpp')
-rw-r--r-- | src/glsl/ast_type.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glsl/ast_type.cpp b/src/glsl/ast_type.cpp index 03ed4dc..8643b7b 100644 --- a/src/glsl/ast_type.cpp +++ b/src/glsl/ast_type.cpp @@ -116,7 +116,7 @@ ast_type_qualifier::interpolation_string() const bool ast_type_qualifier::merge_qualifier(YYLTYPE *loc, _mesa_glsl_parse_state *state, - ast_type_qualifier q) + const ast_type_qualifier &q) { ast_type_qualifier ubo_mat_mask; ubo_mat_mask.flags.i = 0; @@ -293,7 +293,7 @@ ast_type_qualifier::merge_qualifier(YYLTYPE *loc, bool ast_type_qualifier::merge_out_qualifier(YYLTYPE *loc, _mesa_glsl_parse_state *state, - ast_type_qualifier q, + const ast_type_qualifier &q, ast_node* &node) { void *mem_ctx = state; @@ -309,7 +309,7 @@ ast_type_qualifier::merge_out_qualifier(YYLTYPE *loc, bool ast_type_qualifier::merge_in_qualifier(YYLTYPE *loc, _mesa_glsl_parse_state *state, - ast_type_qualifier q, + const ast_type_qualifier &q, ast_node* &node) { void *mem_ctx = state; |