diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-02-27 06:29:31 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-02-27 06:29:31 +0000 |
commit | d05f6870c32f9fa2092ff19ba792965918dbe0ec (patch) | |
tree | 472f7e6066db379e06d624275de1ccff1bf100e5 /llvm | |
parent | 078b8879e7cf9f7e17020c7b548ed71eb0f4039f (diff) | |
download | bcm5719-llvm-d05f6870c32f9fa2092ff19ba792965918dbe0ec.tar.gz bcm5719-llvm-d05f6870c32f9fa2092ff19ba792965918dbe0ec.zip |
Fix compiler warning about uninitialized variables. No functional change.
llvm-svn: 65620
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Transforms/Utils/AddrModeMatcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp b/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp index 766f1eddcf7..7042144e7a7 100644 --- a/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp +++ b/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp @@ -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; |