Breakpoint specification can have the form '-n main', so it's not a good idea to

check that the option arg in '-x opt_arg' does not start with a '-' char.

llvm-svn: 142625
This commit is contained in:
Johnny Chen 2011-10-20 22:16:24 +00:00
parent 608c60c773
commit ff7fc9cfa4
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ def parseOptionsAndInitTestdirs():
elif sys.argv[index].startswith('-x'):
# Increment by 1 to fetch the breakpoint specification of the benchmark executable.
index += 1
if index >= len(sys.argv) or sys.argv[index].startswith('-'):
if index >= len(sys.argv):
usage()
bmBreakpointSpec = sys.argv[index]
index += 1