glsl: remove delegating constructors to allow build with C++98
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 20 Jul 2018 20:21:33 +0000 (13:21 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 23 Jul 2018 17:34:43 +0000 (10:34 -0700)
commit52d831ff83036773978aabf52dde3bb73bb211c7
treeb06cb4b7c3bfc7f6259733793f68ca4068db60d3
parent6b73a97f84f86f4c3d3bbbbadf963c20b8e52b57
glsl: remove delegating constructors to allow build with C++98

Delegating constructors is a C++11 feature, so this was breaking when
compiling with C++98. Change the copy_propagation_state() calls that
used the convenience constructor to use a static member function
instead.

Since copy_propagation_state is expected to be heap allocated, this
change is a good fit.

Tested-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107305
src/compiler/glsl/opt_copy_propagation_elements.cpp