aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-10-25 19:43:12 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-10-25 19:43:18 +0800
commit0da309d460c77277135cffcaa8b2bf75976d3869 (patch)
tree755b751dcbaa87cd45f50f3b341023d46d84a2c3
parent3a6ac6226cae21c3c00fae1acf4481d8101f5371 (diff)
downloaddexon-solidity-0da309d460c77277135cffcaa8b2bf75976d3869.tar.gz
dexon-solidity-0da309d460c77277135cffcaa8b2bf75976d3869.tar.zst
dexon-solidity-0da309d460c77277135cffcaa8b2bf75976d3869.zip
LLL: change -o to be a flag
-rw-r--r--lllc/main.cpp4
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")