Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- sparse-llvm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sparse-llvm.c b/sparse-llvm.c index af540033d..9d8ece69d 100644 --- a/sparse-llvm.c +++ b/sparse-llvm.c @@ -690,9 +690,7 @@ static void output_op_ret(struct function *fn, struct instruction *insn) pseudo_t pseudo = insn->src; if (pseudo && pseudo != VOID) { - LLVMValueRef result = pseudo_to_value(fn, insn->type, pseudo); - - result = adjust_type(fn, insn->type, result); + LLVMValueRef result = get_operand(fn, insn->type, pseudo); LLVMBuildRet(fn->builder, result); } else LLVMBuildRetVoid(fn->builder); -- 2.12.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html