summaryrefslogtreecommitdiff
path: root/src/mir/from_hir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r--src/mir/from_hir.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp
index bc9b04a7..786c2243 100644
--- a/src/mir/from_hir.cpp
+++ b/src/mir/from_hir.cpp
@@ -548,8 +548,8 @@ namespace {
void visit(::HIR::ExprNode_Loop& node) override
{
TRACE_FUNCTION_FR("_Loop", "_Loop");
- auto loop_body_scope = m_builder.new_scope_loop(node.span());
auto loop_block = m_builder.new_bb_linked();
+ auto loop_body_scope = m_builder.new_scope_loop(node.span());
auto loop_next = m_builder.new_bb_unlinked();
auto loop_tmp_scope = m_builder.new_scope_temp(node.span());
@@ -2269,8 +2269,14 @@ namespace {
root_node.visit( ev );
}
+ // NOTE: Can't clean up yet, as consteval isn't done
+ //MIR_Cleanup(resolve, path, fcn, args, ptr->m_res_type);
MIR_Validate(resolve, path, fcn, args, ptr->m_res_type);
+ if( getenv("MRUSTC_VALIDATE_FULL_EARLY") ) {
+ MIR_Validate_Full(resolve, path, fcn, args, ptr->m_res_type);
+ }
+
return ::MIR::FunctionPointer(new ::MIR::Function(mv$(fcn)));
}