summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-02-25 14:38:35 +0800
committerJohn Hodge <tpg@mutabah.net>2016-02-25 14:38:35 +0800
commite3cbce4d476085e3e569a78616602b6ecdb2f1b9 (patch)
tree60b888a923628c02364a5c9f5bb437aeedc9d52e /src
parent05b6d46fb81677f14b345da486535e4d3906decb (diff)
downloadmrust-e3cbce4d476085e3e569a78616602b6ecdb2f1b9.tar.gz
Main - Fix incorrect member for stop-after
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2949b4a6..831e86c7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -77,7 +77,7 @@ int main(int argc, char *argv[])
return Parse_Crate(params.infile);
});
- if( params.emit_flags == ProgramParams::STAGE_PARSE ) {
+ if( params.last_stage == ProgramParams::STAGE_PARSE ) {
return 0;
}
@@ -98,7 +98,7 @@ int main(int argc, char *argv[])
Dump_Rust( FMT(params.outfile << "_0_pp.rs").c_str(), crate );
});
- if( params.emit_flags == ProgramParams::STAGE_EXPAND ) {
+ if( params.last_stage == ProgramParams::STAGE_EXPAND ) {
return 0;
}