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 | 7569af769e520041b00786bc1b19253fd46a0907 (patch) | |
tree | 379c7312d4f208e08ce3bc2a5883fdcb23e48e76 | |
parent | ded2b20e7e5399c90ee7cb560e70ab92ba620dcd (diff) | |
download | external_llvm-7569af769e520041b00786bc1b19253fd46a0907.zip external_llvm-7569af769e520041b00786bc1b19253fd46a0907.tar.gz external_llvm-7569af769e520041b00786bc1b19253fd46a0907.tar.bz2 |
Fix compiler warning about uninitialized variables. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65620 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Utils/AddrModeMatcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/AddrModeMatcher.cpp b/lib/Transforms/Utils/AddrModeMatcher.cpp index 766f1ed..7042144 100644 --- a/lib/Transforms/Utils/AddrModeMatcher.cpp +++ b/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; |