From: Eric Anholt Date: Wed, 23 Nov 2016 20:23:55 +0000 (-0800) Subject: vc4: Make qir_for_each_inst_inorder() safe against removal. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a025983dd9cfcba8a452205efbc5c0be8ff3da74;p=mesa.git vc4: Make qir_for_each_inst_inorder() safe against removal. The dead code elimination wants it to be safe, and I actually got segfaults due to it being unsafe with the new coalescing pass. --- diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h index a8f90cfe7af..28d33449391 100644 --- a/src/gallium/drivers/vc4/vc4_qir.h +++ b/src/gallium/drivers/vc4/vc4_qir.h @@ -887,6 +887,6 @@ qir_BRANCH(struct vc4_compile *c, uint8_t cond) #define qir_for_each_inst_inorder(inst, c) \ qir_for_each_block(_block, c) \ - qir_for_each_inst(inst, _block) + qir_for_each_inst_safe(inst, _block) #endif /* VC4_QIR_H */