summaryrefslogtreecommitdiff
path: root/src/mir/from_hir_match.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir/from_hir_match.cpp')
-rw-r--r--src/mir/from_hir_match.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mir/from_hir_match.cpp b/src/mir/from_hir_match.cpp
index 1f3bb7eb..83db3c74 100644
--- a/src/mir/from_hir_match.cpp
+++ b/src/mir/from_hir_match.cpp
@@ -1634,6 +1634,7 @@ struct DecisionTreeNode
DecisionTreeNode( PatternRule::field_path_t field_path ):
is_specialisation(false)/*,
+ // TODO: This is commented out fo a reason, but I don't know why.
m_field_path( mv$(field_path) ) // */
{}
@@ -1909,6 +1910,7 @@ DecisionTreeNode::Values DecisionTreeNode::clone(const DecisionTreeNode::Values&
}
DecisionTreeNode DecisionTreeNode::clone() const {
DecisionTreeNode rv(m_field_path);
+ rv.m_field_path = m_field_path;
rv.is_specialisation = is_specialisation;
rv.m_branches = clone(m_branches);
rv.m_default = clone(m_default);