aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-12-11 01:04:42 +0000
committerAnders Carlsson <andersca@mac.com>2009-12-11 01:04:42 +0000
commitda920fa4f985ce5d7b56652587d3451ca483e3d6 (patch)
tree55b4eac1bcccf0fdff643a94ad98be1027c762da /include/llvm/Support/CommandLine.h
parentedb4563ceae52e67f0b5cb2f084e3e8da6eba7d3 (diff)
downloadexternal_llvm-da920fa4f985ce5d7b56652587d3451ca483e3d6.zip
external_llvm-da920fa4f985ce5d7b56652587d3451ca483e3d6.tar.gz
external_llvm-da920fa4f985ce5d7b56652587d3451ca483e3d6.tar.bz2
Add qualifiers for calls to member functions in dependent bases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r--include/llvm/Support/CommandLine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index 2e65fdd..7f8b10c 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/include/llvm/Support/CommandLine.h
@@ -986,7 +986,7 @@ template<class DataType>
class list_storage<DataType, bool> : public std::vector<DataType> {
public:
template<class T>
- void addValue(const T &V) { push_back(V); }
+ void addValue(const T &V) { std::vector<DataType>::push_back(V); }
};
@@ -1011,7 +1011,7 @@ class list : public Option, public list_storage<DataType, Storage> {
typename ParserClass::parser_data_type();
if (Parser.parse(*this, ArgName, Arg, Val))
return true; // Parse Error!
- addValue(Val);
+ list_storage<DataType, Storage>::addValue(Val);
setPosition(pos);
Positions.push_back(pos);
return false;