From f0c2003778aeff7fda5993e11eb2a4c78085a163 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 11 Sep 2014 23:11:57 +0800 Subject: [PATCH] py2llvm/fractions: fix addsub with int --- artiq/py2llvm/fractions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/py2llvm/fractions.py b/artiq/py2llvm/fractions.py index 1c97369b8..e57d12a52 100644 --- a/artiq/py2llvm/fractions.py +++ b/artiq/py2llvm/fractions.py @@ -171,7 +171,7 @@ class VFraction(VGeneric): r = VFraction() if builder is not None: if isinstance(other, VInt): - i = other.o_int64(builder).auto_load() + i = other.o_int64(builder).auto_load(builder) x, rd = self._nd(builder) y = builder.mul(rd, i) else: