diff options
author | Anders Carlsson <andersca@mac.com> | 2009-12-11 01:04:42 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-12-11 01:04:42 +0000 |
commit | fb8d445090d7f364ff22e603616ef6584d460f5f (patch) | |
tree | 0098732b166d620ffe85b03a4fefbb79cb5375b7 | |
parent | 0c6a7d8f42a24674a1ae42261482ac2eaef40284 (diff) | |
download | bcm5719-llvm-fb8d445090d7f364ff22e603616ef6584d460f5f.tar.gz bcm5719-llvm-fb8d445090d7f364ff22e603616ef6584d460f5f.zip |
Add qualifiers for calls to member functions in dependent bases.
llvm-svn: 91087
-rw-r--r-- | llvm/include/llvm/Support/CommandLine.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h index 2e65fdd79a1..7f8b10c375f 100644 --- a/llvm/include/llvm/Support/CommandLine.h +++ b/llvm/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; |