nir: Make nir_const_value a union
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 26 May 2016 22:38:45 +0000 (15:38 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 26 May 2016 23:03:44 +0000 (16:03 -0700)
commit15e553daf0cd5fe70994b6ac5377ff11002357a3
tree9f5bfa950ac4549e6964888b85465aa21b34a757
parente7776fa9473af0fd1424f860323916077b991bf6
nir: Make nir_const_value a union

There's no good reason for it to be a struct of an anonymous union.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96221
Tested-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_constant_expressions.py