diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index e940f4a57ea..c4fce2be6ee 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -1248,7 +1248,7 @@ bool LLParser::ParseIndexList(SmallVectorImpl &Indices, AteExtraComma = true; return false; } - unsigned Idx; + unsigned Idx = 0; if (ParseUInt32(Idx)) return true; Indices.push_back(Idx); }