From 510821eff1922246c31f0305fdc73e26bb422327 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Fri, 3 Aug 2018 20:05:12 -0400 Subject: [PATCH] [llvm] Fix OP_ABSF. Fixes https://github.com/mono/mono/issues/9869. --- mono/mini/mini-llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mono/mini/mini-llvm.c b/mono/mini/mini-llvm.c index 756b4e7668ef..21a9cb5a5263 100644 --- a/mono/mini/mini-llvm.c +++ b/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; }