nir: mark *prev_block as MAYBE_UNUSED in opt_peel_loop_initial_if
authorKai Wasserbäch <kai@dev.carbon-project.org>
Fri, 17 Aug 2018 14:32:32 +0000 (16:32 +0200)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sat, 18 Aug 2018 00:34:15 +0000 (10:34 +1000)
commit6f0647c0b207cfe0805eb899c2d97703ae00b1e7
tree8991bb51bc9b86fd68ec45a1f29fcedb6aa8ecbf
parent9387ca29ae465f5e1ee3b4a73c1f7725304bb30e
nir: mark *prev_block as MAYBE_UNUSED in opt_peel_loop_initial_if

Only used, when asserts are enabled.

Fixes an unused-variable warning with gcc-8:
 ../../../src/compiler/nir/nir_opt_if.c: In function 'opt_peel_loop_initial_if':
 ../../../src/compiler/nir/nir_opt_if.c:109:15: warning: unused variable 'prev_block' [-Wunused-variable]
     nir_block *prev_block =
                ^~~~~~~~~~

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir_opt_if.c