summaryrefslogtreecommitdiff
path: root/src/hir/expr.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-08 15:01:21 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-08 15:01:21 +0800
commit391d72b800942aeb55ba77952915a81b2731e970 (patch)
treeb3828ff0b9cc40977819f288829c406959f3932b /src/hir/expr.hpp
parentb1820951e59aa3526ff3399e09a986ae2d5f6bc0 (diff)
downloadmrust-391d72b800942aeb55ba77952915a81b2731e970.tar.gz
HIR+MIR - Correct handling of diverging loops
Diffstat (limited to 'src/hir/expr.hpp')
-rw-r--r--src/hir/expr.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hir/expr.hpp b/src/hir/expr.hpp
index eabfa695..82cdca2d 100644
--- a/src/hir/expr.hpp
+++ b/src/hir/expr.hpp
@@ -105,6 +105,7 @@ struct ExprNode_Loop:
{
::std::string m_label;
::HIR::ExprNodeP m_code;
+ bool m_diverges = false;
ExprNode_Loop(Span sp, ::std::string label, ::HIR::ExprNodeP code):
//ExprNode(mv$(sp), ::HIR::TypeRef::new_unit()),