Skip to content

nir: fix build at -O1

Rhys Perry requested to merge pendingchaos/mesa:nir_gcc_o1 into master

At -O1 with GCC 10.2.1, _nir_visit_dest_indirect (declared ALWAYS_INLINE) will fail to inline if it's caller (nir_foreach_dest) is not inlined, because _nir_visit_dest_indirect is passed as a function pointer. This results in a compilation error.

Merge request reports