Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- sparse-llvm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sparse-llvm.c b/sparse-llvm.c index 23ef31421..7d4cdde3c 100644 --- a/sparse-llvm.c +++ b/sparse-llvm.c @@ -773,13 +773,13 @@ static void output_op_sel(struct function *fn, struct instruction *insn) char name[MAX_PSEUDO_NAME]; src1 = bool_value(fn, pseudo_to_value(fn, NULL, insn->src1)); - src2 = pseudo_to_value(fn, insn->type, insn->src2); - src3 = pseudo_to_value(fn, insn->type, insn->src3); + src2 = get_operand(fn, insn->type, insn->src2); + src3 = get_operand(fn, insn->type, insn->src3); pseudo_name(insn->target, name); target = LLVMBuildSelect(fn->builder, src1, src2, src3, name); - insn->target->priv = target; + insn->target->priv = adjust_type(fn, insn->type, target); } static void output_op_switch(struct function *fn, struct instruction *insn) -- 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