aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r--include/llvm/Support/CommandLine.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index c5e909d8a2..9cad99f441 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/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);