summaryrefslogtreecommitdiff
path: root/src/hir_expand/annotate_value_usage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir_expand/annotate_value_usage.cpp')
-rw-r--r--src/hir_expand/annotate_value_usage.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/hir_expand/annotate_value_usage.cpp b/src/hir_expand/annotate_value_usage.cpp
index 8141f1a6..da4c897f 100644
--- a/src/hir_expand/annotate_value_usage.cpp
+++ b/src/hir_expand/annotate_value_usage.cpp
@@ -86,6 +86,18 @@ namespace {
}
}
+ void visit(::HIR::ExprNode_Asm& node) override
+ {
+ auto _ = this->push_usage( ::HIR::ValueUsage::Move );
+ for(auto& v : node.m_outputs)
+ {
+ this->visit_node_ptr(v.value);
+ }
+ for(auto& v : node.m_inputs)
+ {
+ this->visit_node_ptr(v.value);
+ }
+ }
void visit(::HIR::ExprNode_Return& node) override
{
auto _ = this->push_usage( ::HIR::ValueUsage::Move );