diff options
Diffstat (limited to 'lllc/main.cpp')
-rw-r--r-- | lllc/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lllc/main.cpp b/lllc/main.cpp index 3821d6a3..f8677be0 100644 --- a/lllc/main.cpp +++ b/lllc/main.cpp @@ -99,8 +99,8 @@ int main(int argc, char** argv) mode = Assembly; else if (arg == "-t" || arg == "--parse-tree") mode = ParseTree; - else if ((arg == "-o" || arg == "--optimise") && argc > i + 1) - optimise = atoi(argv[++i]); + else if (arg == "-o" || arg == "--optimise") + optimise = 1; else if (arg == "-d" || arg == "--disassemble") mode = Disassemble; else if (arg == "-V" || arg == "--version") |