Mark some paths unreachable so that compiler knows variables are
initialized in all valid paths.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
if (load)
return LLVMBuildLoad(builder, values[0], "");
return values[0];
- }
+ } else if (!value_count)
+ unreachable("value_count is 0");
for (i = 0; i < value_count; i++) {
LLVMValueRef value = values[i * value_stride];
type = ctx->v4i32;
type_size = 16;
break;
+ default:
+ unreachable("invalid desc_type\n");
}
if (deref->deref.child) {