Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/GT-3319_SleighFunctionCall'
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmkurtz committed Nov 18, 2019
2 parents bb0a3d9 + 410b92c commit a0aff4f
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -1246,7 +1246,17 @@ funcall returns [VectorSTL<OpTpl> value]
@init {
$Return::noReturn = true;
}
: e=expr_apply { $value = (VectorSTL<OpTpl>) e; }
: e=expr_apply {
if (e instanceof VectorSTL<?>)
$value = (VectorSTL<OpTpl>) e;
else {
Location loc = null;
if (e instanceof ExprTree) {
loc = ((ExprTree)e).location;
}
reportError(loc,"Functional operator requires a return value");
}
}
;

build_stmt returns [VectorSTL<OpTpl> ops]
Expand Down

0 comments on commit a0aff4f

Please sign in to comment.