Message ID | alpine.DEB.2.00.1108292242110.24020@localhost6.localdomain6 (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/sparse-llvm.c b/sparse-llvm.c index f89f7a7..a9bf679 100644 --- a/sparse-llvm.c +++ b/sparse-llvm.c @@ -607,7 +607,7 @@ static void output_op_cast(struct function *fn, struct instruction *insn) if (symbol_is_fp_type(insn->type)) target = LLVMBuildFPCast(fn->builder, src, symbol_type(insn->type), target_name); else - target = LLVMBuildIntCast(fn->builder, src, symbol_type(insn->type), target_name); + target = LLVMBuildZExt(fn->builder, src, symbol_type(insn->type), target_name); insn->target->priv = target; }