mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Make sure a variable is initialized before use to clean up a warning from
GCC 4.0.0 in release build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22248 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
72b16d820c
commit
8a207c16d2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user