Skip to content

Commit 786fde8

Browse files
author
whitequark
committedAug 10, 2015
Unbreak tests.
1 parent 200330a commit 786fde8

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
 

Diff for: ‎artiq/compiler/transforms/artiq_ir_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def visit_function(self, node, is_lambda, is_internal):
186186
optargs.append(ir.Argument(ir.TOption(typ.optargs[arg_name]), "arg." + arg_name))
187187

188188
func = ir.Function(typ, ".".join(self.name), [env_arg] + args + optargs,
189-
loc=node.keyword_loc)
189+
loc=node.lambda_loc if is_lambda else node.keyword_loc)
190190
func.is_internal = is_internal
191191
self.functions.append(func)
192192
old_func, self.current_function = self.current_function, func

Diff for: ‎artiq/compiler/transforms/inferencer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def visit_CallT(self, node):
728728
elif keyword.arg in typ.optargs:
729729
self._unify(keyword.value.type, typ.optargs[keyword.arg],
730730
keyword.value.loc, None)
731-
passed_args.add(keyword.arg)
731+
passed_args[keyword.arg] = keyword.arg_loc
732732

733733
for formalname in typ.args:
734734
if formalname not in passed_args:

Diff for: ‎artiq/compiler/transforms/llvm_ir_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def process_function(self, func):
403403
finally:
404404
self.llfunction = None
405405
self.llmap = {}
406-
self.llphis = []
406+
self.phis = []
407407

408408
def process_Phi(self, insn):
409409
llinsn = self.llbuilder.phi(self.llty_of_type(insn.type), name=insn.name)

Diff for: ‎lit-test/test/inferencer/error_builtin_calls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
# CHECK-L: ${LINE:+1}: error: the argument of list() must be of an iterable type
1212
list(1)
1313

14-
# CHECK-L: ${LINE:+1}: error: an argument of range() must be of a numeric type
14+
# CHECK-L: ${LINE:+1}: error: an argument of range() must be of an integer type
1515
range([])

Diff for: ‎lit-test/test/inferencer/error_call.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def f(x, y, z=1):
1313
# CHECK-L: ${LINE:+1}: error: variadic arguments are not supported
1414
f(**[])
1515

16-
# CHECK-L: ${LINE:+1}: error: the argument 'x' is already passed
16+
# CHECK-L: ${LINE:+1}: error: the argument 'x' has been passed earlier as positional
1717
f(1, x=1)
1818

1919
# CHECK-L: ${LINE:+1}: error: mandatory argument 'x' is not passed

0 commit comments

Comments
 (0)
Please sign in to comment.