summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2013-02-19 21:49:54 +0000
committerJakub Staszak <kubastaszak@gmail.com>2013-02-19 21:49:54 +0000
commitfef8b70f9d40e57fdd2e0c2bdf013cb7d0ea6df2 (patch)
treed667f693893c7111f5ad10ec8acdbe60d362c45b /include
parent909a0e0e95e2b96f5d07d40fb53c5892bea20f83 (diff)
Simplify code. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175559 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/CommandLine.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index 0ab39fca38..bf7823ed27 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/include/llvm/Support/CommandLine.h
@@ -469,8 +469,7 @@ public:
template<class Opt>
void apply(Opt &O) const {
- for (unsigned i = 0, e = static_cast<unsigned>(Values.size());
- i != e; ++i)
+ for (size_t i = 0, e = Values.size(); i != e; ++i)
O.getParser().addLiteralOption(Values[i].first, Values[i].second.first,
Values[i].second.second);
}
@@ -629,8 +628,7 @@ public:
else
ArgVal = ArgName;
- for (unsigned i = 0, e = static_cast<unsigned>(Values.size());
- i != e; ++i)
+ for (size_t i = 0, e = Values.size(); i != e; ++i)
if (Values[i].Name == ArgVal) {
V = Values[i].V.getValue();
return false;