silence a huge number of bogus warnings with GCC 4 on Reid's tester.
authorChris Lattner <sabre@nondot.org>
Fri, 17 Jun 2005 13:20:15 +0000 (13:20 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 17 Jun 2005 13:20:15 +0000 (13:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22244 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CommandLine.h

index e99d7bbeafd9b52d6d99bd89510fada1cee00c21..c5e909d8a2663db9083eb7a0d4651ae2b01667cb 100644 (file)
@@ -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);