projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ded2b20
)
Fix compiler warning about uninitialized variables. No functional change.
author
Nick Lewycky
<nicholas@mxc.ca>
Fri, 27 Feb 2009 06:29:31 +0000
(06:29 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Fri, 27 Feb 2009 06:29:31 +0000
(06:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65620
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/AddrModeMatcher.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/AddrModeMatcher.cpp
b/lib/Transforms/Utils/AddrModeMatcher.cpp
index 766f1eddcf76bad4304a1a8550683a50a02035ee..7042144e7a79cd7a3f4229f999a90873695ea160 100644
(file)
--- 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;