summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-01-22 16:16:13 +0800
committerJohn Hodge <tpg@mutabah.net>2017-01-22 16:16:13 +0800
commite21239591fcffea17b0437889ba564f7b4f53419 (patch)
tree7ebfbbc37cc54811b27ed6db1de67612a6514134
parent285a44058ed77624a808680ea435ca506d585de9 (diff)
downloadmrust-e21239591fcffea17b0437889ba564f7b4f53419.tar.gz
Main - Move second MIR validation to after saveback
-rw-r--r--src/main.cpp6
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;