diff options
author | Daniel Malea <daniel.malea@intel.com> | 2013-04-23 15:28:10 +0000 |
---|---|---|
committer | Daniel Malea <daniel.malea@intel.com> | 2013-04-23 15:28:10 +0000 |
commit | 243b36931f0b189439388afc27e0eea07fbca359 (patch) | |
tree | 4306bfaa4cb2871642ea41b67553879daedeaaeb /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | 43cf90f4d1ca924abbb799aaab41c537be3219ba (diff) | |
download | bcm5719-llvm-243b36931f0b189439388afc27e0eea07fbca359.tar.gz bcm5719-llvm-243b36931f0b189439388afc27e0eea07fbca359.zip |
Fix linux argument completion with for "--" options (llvm.org/bugs/pr14425)
Patch by Yacine Belkadi!
When __GLIBC__ is defined, optind gets initialized to 0. So for the first parsed
option, parse_start is 0, too. If this option has no argument (Like "--continue"
of "process attach"), then the position stored is 0, instead of 1. This prevents
the completion later on in Options::HandleOptionCompletion() because the opt_pos
doesn't match the cursor_index.
Fix that by getting the option's position from the value of optind, as it's done
for the other types of options.
Re-enable test_process_attach_dash_dash_con() on Linux.
No regressions detected on Mac OS X (in TestCompletion.py)
llvm-svn: 180114
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
0 files changed, 0 insertions, 0 deletions