summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-09-06 11:13:55 +0000
committerNadav Rotem <nrotem@apple.com>2012-09-06 11:13:55 +0000
commita8e15b0892ea39d95d6c18a177fd691900019be3 (patch)
tree738553da4506019794241ad838f661b15ceb9086 /llvm/lib/Target/ARM
parentf9caa28ccfe8be498dc2f454946286d297e11178 (diff)
downloadbcm5719-llvm-a8e15b0892ea39d95d6c18a177fd691900019be3.tar.gz
bcm5719-llvm-a8e15b0892ea39d95d6c18a177fd691900019be3.zip
Fix a few old-GCC warnings. No functional change.
llvm-svn: 163309
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index 9849cb57d19..045d90424bd 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -2642,7 +2642,7 @@ bool ARMFastISel::SelectShift(const Instruction *I,
unsigned Reg1 = getRegForValue(Src1Value);
if (Reg1 == 0) return false;
- unsigned Reg2;
+ unsigned Reg2 = 0;
if (Opc == ARM::MOVsr) {
Reg2 = getRegForValue(Src2Value);
if (Reg2 == 0) return false;
OpenPOWER on IntegriCloud