[llvm-commits] [llvm] r82360 - /llvm/trunk/lib/Support/CommandLine.cpp
Daniel Dunbar
daniel at zuster.org
Sat Sep 19 21:03:41 PDT 2009
Author: ddunbar
Date: Sat Sep 19 23:03:41 2009
New Revision: 82360
URL: http://llvm.org/viewvc/llvm-project?rev=82360&view=rev
Log:
Fix refacto, this code was expecting to stride past the argument prefix.
Modified:
llvm/trunk/lib/Support/CommandLine.cpp
Modified: llvm/trunk/lib/Support/CommandLine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CommandLine.cpp?rev=82360&r1=82359&r2=82360&view=diff
==============================================================================
--- llvm/trunk/lib/Support/CommandLine.cpp (original)
+++ llvm/trunk/lib/Support/CommandLine.cpp Sat Sep 19 23:03:41 2009
@@ -560,6 +560,7 @@
// rest of the name... so fall through to later processing, by
// setting up the argument name flags and value fields.
if (PGOpt && PGOpt->getFormattingFlag() == cl::Prefix) {
+ ArgName = argv[i]+1;
Value = ArgName.substr(Length);
assert(Opts.count(ArgName.substr(0, Length)) &&
Opts[ArgName.substr(0, Length)] == PGOpt);
More information about the llvm-commits
mailing list