diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/nir/nir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index 56891dc3401..d0e09ebb34e 100644 --- a/src/glsl/nir/nir.c +++ b/src/glsl/nir/nir.c @@ -739,10 +739,11 @@ static void move_successors(nir_block *source, nir_block *dest) { nir_block *succ1 = source->successors[0]; + nir_block *succ2 = source->successors[1]; + if (succ1) unlink_blocks(source, succ1); - nir_block *succ2 = source->successors[1]; if (succ2) unlink_blocks(source, succ2); |