From: Simon Pilgrim Date: Sat, 11 May 2019 11:08:24 +0000 (+0000) Subject: Fix uninitialized variable analyzer warning. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=892b82bd17a5a08ddae404157f6dfd01183d2b4b;p=llvm Fix uninitialized variable analyzer warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360516 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 9558bd0b783..56012490c45 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -8035,7 +8035,7 @@ bool LLParser::ParseOptionalFFlags(FunctionSummary::FFlags &FFlags) { return true; do { - unsigned Val; + unsigned Val = 0; switch (Lex.getKind()) { case lltok::kw_readNone: Lex.Lex();