Skip to content

Commit

Permalink
bishop: Make call graph generation more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
magnatelee committed May 4, 2018
1 parent d5eb4f3 commit 3e85004
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion language/src/bishop/optimize_match.t
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ local function fetch_call_graph()
if v:has_primary_variant() then
local task_ast = v:get_primary_variant():get_ast()
local function record_callees(node)
if node:is(regent_ast.typed.expr.Call) and
if (node:is(regent_ast.specialized.expr.Call) or
node:is(regent_ast.typed.expr.Call)) and
regent_std.is_task(node.fn.value) then
call_graph[k][node.fn.value.name:mkstring()] = true
end
Expand Down

0 comments on commit 3e85004

Please sign in to comment.