]> granicus.if.org Git - clang/commit
[driver] In general, the driver claims redundant args and uses the last arg.
authorChad Rosier <mcrosier@apple.com>
Sat, 7 Apr 2012 00:01:31 +0000 (00:01 +0000)
committerChad Rosier <mcrosier@apple.com>
Sat, 7 Apr 2012 00:01:31 +0000 (00:01 +0000)
commita53ab5c569f494e44344ab950ccd6289dfa2d3ef
tree1d43e95b1f844ecf8aa3a3df3e05933e51bab88f
parentb031eab1c07fa2c5bd74c7e92f7c938bf3304729
[driver] In general, the driver claims redundant args and uses the last arg.
However, the '-x' option has special handling and wasn't following this
paradigm.  Fix it to do so by claiming the arg as we parse the '-x' option.
rdar://11203340

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154231 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Driver.cpp
test/Driver/redundant-args.c [new file with mode: 0644]