From e21239591fcffea17b0437889ba564f7b4f53419 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 22 Jan 2017 16:16:13 +0800 Subject: Main - Move second MIR validation to after saveback --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 3573f138..8ab3a241 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -423,14 +423,14 @@ int main(int argc, char *argv[]) CompilePhaseV("MIR Optimise", [&]() { MIR_OptimiseCrate(*hir_crate); }); - CompilePhaseV("MIR Validate PO", [&]() { - MIR_CheckCrate(*hir_crate); - }); CompilePhaseV("Dump MIR", [&]() { ::std::ofstream os (FMT(params.outfile << "_3_mir.rs")); MIR_Dump( os, *hir_crate ); }); + CompilePhaseV("MIR Validate PO", [&]() { + MIR_CheckCrate(*hir_crate); + }); if( params.last_stage == ProgramParams::STAGE_MIR ) { return 0; -- cgit v1.2.3