summaryrefslogtreecommitdiff
path: root/src/hir/expr.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-01 10:36:43 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-01 10:36:43 +0800
commit7ab71bed81dbaa42c670e84eb74de63048db0ccf (patch)
tree3fd442faa613d4767054e3a5f20859e0d06415ed /src/hir/expr.hpp
parent8aa16a2533a6ad2417707f1c720e6b8b2ca6e660 (diff)
downloadmrust-7ab71bed81dbaa42c670e84eb74de63048db0ccf.tar.gz
HIR Typecheck Expr - Handle posibly-diverging loop blocks correctly
Diffstat (limited to 'src/hir/expr.hpp')
-rw-r--r--src/hir/expr.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hir/expr.hpp b/src/hir/expr.hpp
index d3bc8ad0..569f1b9d 100644
--- a/src/hir/expr.hpp
+++ b/src/hir/expr.hpp
@@ -107,7 +107,8 @@ struct ExprNode_Loop:
::HIR::ExprNodeP m_code;
ExprNode_Loop(Span sp, ::std::string label, ::HIR::ExprNodeP code):
- ExprNode(mv$(sp), ::HIR::TypeRef::new_unit()),
+ //ExprNode(mv$(sp), ::HIR::TypeRef::new_unit()),
+ ExprNode(mv$(sp), ::HIR::TypeRef()),
m_label( mv$(label) ),
m_code( mv$(code) )
{}