Fix compiler warning about uninitialized variables. No functional change.

llvm-svn: 65620
This commit is contained in:
Nick Lewycky 2009-02-27 06:29:31 +00:00
parent 078b8879e7
commit d05f6870c3
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ bool AddressingModeMatcher::MatchScaledValue(Value *ScaleReg, int64_t Scale,
// Okay, we decided that we can add ScaleReg+Scale to AddrMode. Check now
// to see if ScaleReg is actually X+C. If so, we can turn this into adding
// X*Scale + C*Scale to addr mode.
ConstantInt *CI; Value *AddLHS;
ConstantInt *CI = 0; Value *AddLHS = 0;
if (isa<Instruction>(ScaleReg) && // not a constant expr.
match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) {
TestAddrMode.ScaledReg = AddLHS;