From bbfb755a18939734454b6b4e076d17233cbc4c45 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Mon, 6 Aug 2018 06:52:05 -0400 Subject: [PATCH] [llvm] Fix OP_ABSF. (mono/mono#9878) Fixes https://github.com/mono/mono/issues/9869. Commit migrated from https://github.com/mono/mono/commit/119cd740231fb0764bd4af7d4899be634a9c1309 --- src/mono/mono/mini/mini-llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/mono/mini/mini-llvm.c b/src/mono/mono/mini/mini-llvm.c index 0e327ef51025b..bdd984acaf12f 100644 --- a/src/mono/mono/mini/mini-llvm.c +++ b/src/mono/mono/mini/mini-llvm.c @@ -5474,7 +5474,7 @@ process_bb (EmitContext *ctx, MonoBasicBlock *bb) /* llvm.fabs not supported on all platforms */ args [0] = convert (ctx, lhs, LLVMDoubleType ()); values [ins->dreg] = LLVMBuildCall (builder, get_intrinsic (ctx, "fabs"), args, 1, dname); - values [ins->dreg] = convert (ctx, lhs, LLVMFloatType ()); + values [ins->dreg] = convert (ctx, values [ins->dreg], LLVMFloatType ()); #endif break; }