From e3cbce4d476085e3e569a78616602b6ecdb2f1b9 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 25 Feb 2016 14:38:35 +0800 Subject: Main - Fix incorrect member for stop-after --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3