Index: pydir/run-llvm2ice.py |
diff --git a/pydir/run-llvm2ice.py b/pydir/run-llvm2ice.py |
index 382467349861e675895f9efba867d06e13d7831a..72925ccc3380eba744c3fa53babb56b7ca9d545d 100755 |
--- a/pydir/run-llvm2ice.py |
+++ b/pydir/run-llvm2ice.py |
@@ -47,6 +47,7 @@ def main(): |
action='store_true', |
help='Trace command that generates ICE instructions') |
argparser.add_argument('--args', '-a', nargs=argparse.REMAINDER, |
+ default=[], |
help='Remaining arguments are passed to llvm2ice') |
args = argparser.parse_args() |
@@ -78,8 +79,7 @@ def main(): |
cmd += ['--build-on-read=0'] |
else: |
cmd += ['--build-on-read=1'] |
- if args.args: |
- cmd += args.args |
+ cmd += args.args |
if args.llvm_source: |
cmd += [llfile] |