diff options
author | John Hodge <tpg@mutabah.net> | 2016-05-20 09:52:57 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-05-20 09:52:57 +0800 |
commit | e0d932dbc21555ef47e33b0d13aeb3dde8e42c7e (patch) | |
tree | 1ea75a429d676026efc54b3920f5159563debf6f /src/resolve/absolute.cpp | |
parent | 692cef0353fc891756d4137e8007e0f822c684a5 (diff) | |
download | mrust-e0d932dbc21555ef47e33b0d13aeb3dde8e42c7e.tar.gz |
Expand - For loop desugar
Diffstat (limited to 'src/resolve/absolute.cpp')
-rw-r--r-- | src/resolve/absolute.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp index 2985419a..da27261f 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -595,6 +595,7 @@ void Resolve_Absolute_Expr(Context& context, ::AST::ExprNode& node) if(arm.m_cond) arm.m_cond->visit( *this ); + assert( arm.m_code ); arm.m_code->visit( *this ); this->context.pop_block(); @@ -710,7 +711,7 @@ void Resolve_Absolute_PatternValue(/*const*/ Context& context, ::AST::Pattern::V (Integer, ), (String, ), (Named, - assert( ! e.is_trivial() ); + //assert( ! e.is_trivial() ); Resolve_Absolute_Path(context, Span(), Context::LookupMode::Constant, e); ) ) |