diff options
author | Chris Lattner <sabre@nondot.org> | 2005-06-17 13:20:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-06-17 13:20:15 +0000 |
commit | e6ad5ea996673f76b62e495d268c8bf7c9b0d205 (patch) | |
tree | 7e0a66779a119a763b1401d1196c9fc47d018c9b /include/llvm/Support/CommandLine.h | |
parent | 60b62aa0469d80fdc12d6b3643afa48e0d74be79 (diff) |
silence a huge number of bogus warnings with GCC 4 on Reid's tester.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r-- | include/llvm/Support/CommandLine.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index e99d7bbeaf..c5e909d8a2 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -734,7 +734,8 @@ class opt : public Option, virtual bool handleOccurrence(unsigned pos, const char *ArgName, const std::string &Arg) { - typename ParserClass::parser_data_type Val; + typename ParserClass::parser_data_type Val = + typename ParserClass::parser_data_type(); if (Parser.parse(*this, ArgName, Arg, Val)) return true; // Parse error! setValue(Val); |