[llvm-commits] [llvm] r74457 - /llvm/trunk/tools/llvm-mc/AsmParser.cpp
Daniel Dunbar
daniel at zuster.org
Mon Jun 29 14:14:22 PDT 2009
Author: ddunbar
Date: Mon Jun 29 16:14:21 2009
New Revision: 74457
URL: http://llvm.org/viewvc/llvm-project?rev=74457&view=rev
Log:
Fix uninitialized variable warning.
Modified:
llvm/trunk/tools/llvm-mc/AsmParser.cpp
Modified: llvm/trunk/tools/llvm-mc/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mc/AsmParser.cpp?rev=74457&r1=74456&r2=74457&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mc/AsmParser.cpp (original)
+++ llvm/trunk/tools/llvm-mc/AsmParser.cpp Mon Jun 29 16:14:21 2009
@@ -218,7 +218,7 @@
/// 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
More information about the llvm-commits
mailing list