radeonsi: always return void from si_build_wrapper_function
It's the end of the shader, there are no return values. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7623>
This commit is contained in:
parent
a56e92c79e
commit
0aba174361
|
@ -732,9 +732,6 @@ void si_build_wrapper_function(struct si_shader_context *ctx, LLVMValueRef *part
|
||||||
if (ctx->stage == MESA_SHADER_TESS_CTRL && si_is_multi_part_shader(ctx->shader))
|
if (ctx->stage == MESA_SHADER_TESS_CTRL && si_is_multi_part_shader(ctx->shader))
|
||||||
ac_build_endif(&ctx->ac, 6507);
|
ac_build_endif(&ctx->ac, 6507);
|
||||||
|
|
||||||
/* Return the value from the last part. */
|
assert(LLVMGetTypeKind(LLVMTypeOf(ret)) == LLVMVoidTypeKind);
|
||||||
if (LLVMGetTypeKind(LLVMTypeOf(ret)) == LLVMVoidTypeKind)
|
LLVMBuildRetVoid(builder);
|
||||||
LLVMBuildRetVoid(builder);
|
|
||||||
else
|
|
||||||
LLVMBuildRet(builder, ret);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue