nir/builder: Use a normal temporary array in nir_channel
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Sep 2015 19:09:06 +0000 (12:09 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Sep 2015 21:51:05 +0000 (14:51 -0700)
commitcb503c322754dd9dba016e703cf8b30177ed157b
treeae3eac10651eb45d789956b96e21887089f5c624
parent18385bc3ac867bf7fb4070fe0f90bdf8e3e515a4
nir/builder: Use a normal temporary array in nir_channel

C++ gets cranky if we take references of temporaries.  This isn't a problem
yet in master because nir_builder is never used from C++.  However, it will
be in the future so we should fix it now.

Reviewed-by: Rob Clark <robclark@freedesktop.org>
src/glsl/nir/nir_builder.h