aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-01-23 17:05:06 +0000
committerTed Kremenek <kremenek@apple.com>2011-01-23 17:05:06 +0000
commit584520e8e2c1f8cc04bc8dd4dc4ea6c390627317 (patch)
tree5c2b967c7213bcde969f62c285053572437b44fe /lib/Target/ARM
parent54104db434d400e07cc238c9ac47c5e34e01cb20 (diff)
downloadexternal_llvm-584520e8e2c1f8cc04bc8dd4dc4ea6c390627317.zip
external_llvm-584520e8e2c1f8cc04bc8dd4dc4ea6c390627317.tar.gz
external_llvm-584520e8e2c1f8cc04bc8dd4dc4ea6c390627317.tar.bz2
Null initialize a few variables flagged by
clang's -Wuninitialized-experimental warning. While these don't look like real bugs, clang's -Wuninitialized-experimental analysis is stricter than GCC's, and these fixes have the benefit of being general nice cleanups. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124073 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r--lib/Target/ARM/ARMExpandPseudoInsts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMExpandPseudoInsts.cpp b/lib/Target/ARM/ARMExpandPseudoInsts.cpp
index 4191d68..7e9d217 100644
--- a/lib/Target/ARM/ARMExpandPseudoInsts.cpp
+++ b/lib/Target/ARM/ARMExpandPseudoInsts.cpp
@@ -518,7 +518,7 @@ void ARMExpandPseudo::ExpandLaneOp(MachineBasicBlock::iterator &MBBI) {
}
assert(Lane < RegElts && "out of range lane for VLD/VST-lane");
- unsigned D0, D1, D2, D3;
+ unsigned D0 = 0, D1 = 0, D2 = 0, D3 = 0;
unsigned DstReg = 0;
bool DstIsDead = false;
if (TableEntry->IsLoad) {