diff options
author | John Hodge <tpg@mutabah.net> | 2017-01-22 16:16:13 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2017-01-22 16:16:13 +0800 |
commit | e21239591fcffea17b0437889ba564f7b4f53419 (patch) | |
tree | 7ebfbbc37cc54811b27ed6db1de67612a6514134 /src | |
parent | 285a44058ed77624a808680ea435ca506d585de9 (diff) | |
download | mrust-e21239591fcffea17b0437889ba564f7b4f53419.tar.gz |
Main - Move second MIR validation to after saveback
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 6 |
1 files 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; |