[llvm] r360516 - Fix uninitialized variable analyzer warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat May 11 04:08:25 PDT 2019
Author: rksimon
Date: Sat May 11 04:08:24 2019
New Revision: 360516
URL: http://llvm.org/viewvc/llvm-project?rev=360516&view=rev
Log:
Fix uninitialized variable analyzer warning. NFCI.
Modified:
llvm/trunk/lib/AsmParser/LLParser.cpp
Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=360516&r1=360515&r2=360516&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Sat May 11 04:08:24 2019
@@ -8035,7 +8035,7 @@ bool LLParser::ParseOptionalFFlags(Funct
return true;
do {
- unsigned Val;
+ unsigned Val = 0;
switch (Lex.getKind()) {
case lltok::kw_readNone:
Lex.Lex();
More information about the llvm-commits
mailing list