[cfe-commits] r67493 - /cfe/trunk/lib/Driver/Arg.cpp
Daniel Dunbar
daniel at zuster.org
Sun Mar 22 16:50:14 PDT 2009
Author: ddunbar
Date: Sun Mar 22 18:50:14 2009
New Revision: 67493
URL: http://llvm.org/viewvc/llvm-project?rev=67493&view=rev
Log:
Driver: Drop code for checking bounds in SeparateArg::render, this
situation should never occur now that arguments are parsed correctly.
Modified:
cfe/trunk/lib/Driver/Arg.cpp
Modified: cfe/trunk/lib/Driver/Arg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Arg.cpp?rev=67493&r1=67492&r2=67493&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Arg.cpp (original)
+++ cfe/trunk/lib/Driver/Arg.cpp Sun Mar 22 18:50:14 2009
@@ -162,9 +162,8 @@
Output.push_back(Args.MakeArgString(Joined.c_str()));
} else {
Output.push_back(Args.getArgString(getIndex()));
- unsigned limit = std::min(Args.size(), getIndex() + 1 + NumValues);
- for (unsigned i = getIndex() + 1; i < limit; ++i)
- Output.push_back(Args.getArgString(i));
+ for (unsigned i = 0; i < NumValues; ++i)
+ Output.push_back(Args.getArgString(getIndex() + 1 + i));
}
}
More information about the cfe-commits
mailing list