Skip to content

Commit

Permalink
Unbreak tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Aug 10, 2015
1 parent 200330a commit 786fde8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion artiq/compiler/transforms/artiq_ir_generator.py
Expand Up @@ -186,7 +186,7 @@ def visit_function(self, node, is_lambda, is_internal):
optargs.append(ir.Argument(ir.TOption(typ.optargs[arg_name]), "arg." + arg_name))

func = ir.Function(typ, ".".join(self.name), [env_arg] + args + optargs,
loc=node.keyword_loc)
loc=node.lambda_loc if is_lambda else node.keyword_loc)
func.is_internal = is_internal
self.functions.append(func)
old_func, self.current_function = self.current_function, func
Expand Down
2 changes: 1 addition & 1 deletion artiq/compiler/transforms/inferencer.py
Expand Up @@ -728,7 +728,7 @@ def visit_CallT(self, node):
elif keyword.arg in typ.optargs:
self._unify(keyword.value.type, typ.optargs[keyword.arg],
keyword.value.loc, None)
passed_args.add(keyword.arg)
passed_args[keyword.arg] = keyword.arg_loc

for formalname in typ.args:
if formalname not in passed_args:
Expand Down
2 changes: 1 addition & 1 deletion artiq/compiler/transforms/llvm_ir_generator.py
Expand Up @@ -403,7 +403,7 @@ def process_function(self, func):
finally:
self.llfunction = None
self.llmap = {}
self.llphis = []
self.phis = []

def process_Phi(self, insn):
llinsn = self.llbuilder.phi(self.llty_of_type(insn.type), name=insn.name)
Expand Down
2 changes: 1 addition & 1 deletion lit-test/test/inferencer/error_builtin_calls.py
Expand Up @@ -11,5 +11,5 @@
# CHECK-L: ${LINE:+1}: error: the argument of list() must be of an iterable type
list(1)

# CHECK-L: ${LINE:+1}: error: an argument of range() must be of a numeric type
# CHECK-L: ${LINE:+1}: error: an argument of range() must be of an integer type
range([])
2 changes: 1 addition & 1 deletion lit-test/test/inferencer/error_call.py
Expand Up @@ -13,7 +13,7 @@ def f(x, y, z=1):
# CHECK-L: ${LINE:+1}: error: variadic arguments are not supported
f(**[])

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

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

0 comments on commit 786fde8

Please sign in to comment.