summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-06-18 16:53:27 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-06-18 16:53:27 +0000
commit1fb9d0191911979caa145a88bd61ccd9adbb093f (patch)
tree79a52282a0682dd59af1de837218a55506013257 /llvm/include/llvm/Support/CommandLine.h
parent26fc33fd2a5faeb655fdcf901d1e92f9a8336ca9 (diff)
downloadbcm5719-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.h3
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);
OpenPOWER on IntegriCloud