diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-12 13:10:38 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-12 13:10:38 +0800 |
commit | 1c75ff6ca74ca61049b29c5b9ce6f916752c87c7 (patch) | |
tree | 8be551e5fa5db2f4e20f37418bd42c3c813981c8 /src/hir/from_ast_expr.cpp | |
parent | 7afaf33d066a362428bc35c99faec25a3294b230 (diff) | |
download | mrust-1c75ff6ca74ca61049b29c5b9ce6f916752c87c7.tar.gz |
HIR Typecheck - Assign ops minor fix
Diffstat (limited to 'src/hir/from_ast_expr.cpp')
-rw-r--r-- | src/hir/from_ast_expr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hir/from_ast_expr.cpp b/src/hir/from_ast_expr.cpp index 1dcbf261..ea46c4c3 100644 --- a/src/hir/from_ast_expr.cpp +++ b/src/hir/from_ast_expr.cpp @@ -29,6 +29,7 @@ struct LowerHIR_ExprNode_Visitor: rv->m_nodes.push_back( LowerHIR_ExprNode_Inner( *n ) ); } else { + assert(&n == &v.m_nodes.back()); rv->m_nodes.push_back( ::HIR::ExprNodeP( new ::HIR::ExprNode_Tuple(Span(), {}) ) ); } } |