From 1e908581459aab5c0b088f33bbd36429e60ffe85 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sun, 2 Sep 2018 18:39:39 +0200 Subject: [PATCH] Fix blocking functions Don't think they're blocking when the scheduler has been disabled. --- compiler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler.go b/compiler.go index b6999f74..2551b17a 100644 --- a/compiler.go +++ b/compiler.go @@ -1588,7 +1588,7 @@ func (c *Compiler) parseCall(frame *Frame, instr *ssa.CallCommon, parentHandle l } } } - return c.parseFunctionCall(frame, instr.Args, targetFunc.llvmFn, context, targetFunc.blocking, parentHandle) + return c.parseFunctionCall(frame, instr.Args, targetFunc.llvmFn, context, c.ir.IsBlocking(targetFunc), parentHandle) } // Builtin or function pointer.