diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-06-18 16:53:27 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-06-18 16:53:27 +0000 |
commit | 1fb9d0191911979caa145a88bd61ccd9adbb093f (patch) | |
tree | 79a52282a0682dd59af1de837218a55506013257 /llvm/include/llvm/Support/CommandLine.h | |
parent | 26fc33fd2a5faeb655fdcf901d1e92f9a8336ca9 (diff) | |
download | bcm5719-llvm-1fb9d0191911979caa145a88bd61ccd9adbb093f.tar.gz bcm5719-llvm-1fb9d0191911979caa145a88bd61ccd9adbb093f.zip |
Make sure a variable is initialized before use to clean up a warning from
GCC 4.0.0 in release build.
llvm-svn: 22248
Diffstat (limited to 'llvm/include/llvm/Support/CommandLine.h')
-rw-r--r-- | llvm/include/llvm/Support/CommandLine.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h index c5e909d8a26..9cad99f4415 100644 --- a/llvm/include/llvm/Support/CommandLine.h +++ b/llvm/include/llvm/Support/CommandLine.h @@ -894,7 +894,8 @@ class list : public Option, public list_storage<DataType, Storage> { 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! addValue(Val); |