glsl: Fix g++ initializer order warning
authorBrian Paul <brianp@vmware.com>
Mon, 22 May 2017 12:52:45 +0000 (06:52 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 25 May 2017 16:35:11 +0000 (10:35 -0600)
commit12dc84336723d3f156195a6a0473ed151cfb8395
tree19ad2271db78b41ca135c7690e0b7cfa5e383656
parentf94cfdc5f2724d7fc92ad1c5d2127b884e7892ff
glsl: Fix g++ initializer order warning

Fixes this warning:
In file included from ../../../src/compiler/glsl/ir.cpp:25:0:
../../../src/compiler/glsl/ir.h: In constructor 'ir_swizzle::ir_swizzle(ir_rvalue*, ir_swizzle_mask)':
../../../src/compiler/glsl/ir.h:1955:20: warning: 'ir_swizzle::mask' will be initialized after [-Wreorder]
    ir_swizzle_mask mask;
                    ^
../../../src/compiler/glsl/ir.h:1954:15: warning:   'ir_rvalue* ir_swizzle::val' [-Wreorder]
    ir_rvalue *val;
               ^
../../../src/compiler/glsl/ir.cpp:1592:1: warning:   when initialized here [-Wreorder]
 ir_swizzle::ir_swizzle(ir_rvalue *val, ir_swizzle_mask mask)
 ^

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/glsl/ir.cpp