Skip to content
  • Vinson Lee's avatar
    nir: Fix anonymous union initialization with older GCC. · 01d80bed
    Vinson Lee authored
    Fix this build error with GCC 4.4.7.
    
      CC     nir/nir_opt_copy_prop_vars.lo
    nir/nir_opt_copy_prop_vars.c: In function ‘copy_prop_vars_block’:
    nir/nir_opt_copy_prop_vars.c:765: error: unknown field ‘deref’ specified in initializer
    nir/nir_opt_copy_prop_vars.c:765: warning: missing braces around initializer
    nir/nir_opt_copy_prop_vars.c:765: warning: (near initialization for ‘(anonymous).<anonymous>’)
    nir/nir_opt_copy_prop_vars.c:765: warning: initialization from incompatible pointer type
    
    Fixes: 62332d13
    
     ("nir: Add a local variable-based copy propagation pass")
    Signed-off-by: default avatarVinson Lee <vlee@freedesktop.org>
    Acked-by: default avatarJason Ekstrand <jason@jlekstrand.net>
    01d80bed