From: Daniel Dunbar Date: Mon, 29 Jun 2009 21:14:21 +0000 (+0000) Subject: Fix uninitialized variable warning. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=513306395c98fb8dac2537f0d13881b24d35075b Fix uninitialized variable warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74457 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp index 2248b046c20..9121797e814 100644 --- a/tools/llvm-mc/AsmParser.cpp +++ b/tools/llvm-mc/AsmParser.cpp @@ -218,7 +218,7 @@ static unsigned getBinOpPrecedence(asmtok::TokKind K, /// Res contains the LHS of the expression on input. bool AsmParser::ParseBinOpRHS(unsigned Precedence, AsmExpr *&Res) { while (1) { - AsmBinaryExpr::Opcode Kind; + AsmBinaryExpr::Opcode Kind = AsmBinaryExpr::Add; unsigned TokPrec = getBinOpPrecedence(Lexer.getKind(), Kind); // If the next token is lower precedence than we are allowed to eat, return