summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-06-01 10:34:04 -0700
committerEmil Velikov <[email protected]>2016-06-14 15:48:35 +0100
commit6efd37f30d4983e627ccc8a7f12ae2552812c7d9 (patch)
tree8052affedb0fee8cc8dfa4e26ec11d759815aff2
parentaf2a278dfe6ca0ba8687f890cddaec67f991eec3 (diff)
nir/spirv: Use breaks instead of returns in constant handling
Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Cc: "12.0" <[email protected]> (cherry picked from commit b26cdd65e8e588ed7bdd7cca0b205579132e1261)
-rw-r--r--src/compiler/spirv/spirv_to_nir.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 4061b8a2014..bb7aba4d9d4 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -1028,7 +1028,7 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
val->constant->value.u[i] = u[comp];
}
}
- return;
+ break;
}
case SpvOpCompositeExtract:
@@ -1105,7 +1105,7 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
(*c)->value.u[elem + i] = insert->constant->value.u[i];
}
}
- return;
+ break;
}
default: {
@@ -1134,9 +1134,10 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
for (unsigned k = 0; k < num_components; k++)
val->constant->value.u[k] = res.u32[k];
- return;
+ break;
} /* default */
}
+ break;
}
case SpvOpConstantNull: