summaryrefslogtreecommitdiff
path: root/src/hir_conv/bind.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-03 16:15:19 +0800
committerJohn Hodge <tpg@mutabah.net>2016-12-03 16:15:19 +0800
commitb859297f6ed678e004b841dcf2ae5a64c10301f8 (patch)
treee640f388c2c641cf00ea1821ee9973aa9f057a42 /src/hir_conv/bind.cpp
parent25bd608c36557b833b52d46a39f3d05ceffd7153 (diff)
downloadmrust-b859297f6ed678e004b841dcf2ae5a64c10301f8.tar.gz
MIR - Create a CallPath terminator
Diffstat (limited to 'src/hir_conv/bind.cpp')
-rw-r--r--src/hir_conv/bind.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/hir_conv/bind.cpp b/src/hir_conv/bind.cpp
index a83b70d3..911abd1f 100644
--- a/src/hir_conv/bind.cpp
+++ b/src/hir_conv/bind.cpp
@@ -603,11 +603,17 @@ namespace {
(Switch,
H::visit_lvalue(*this, te.val);
),
- (Call,
+ (CallValue,
H::visit_lvalue(*this, te.ret_val);
H::visit_lvalue(*this, te.fcn_val);
for(auto& arg : te.args)
H::visit_lvalue(*this, arg);
+ ),
+ (CallPath,
+ H::visit_lvalue(*this, te.ret_val);
+ visit_path(te.fcn_path, ::HIR::Visitor::PathContext::VALUE);
+ for(auto& arg : te.args)
+ H::visit_lvalue(*this, arg);
)
)
}