aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/CellSPU
diff options
context:
space:
mode:
authorScott Michel <scottm@aero.org>2009-08-24 21:53:27 +0000
committerScott Michel <scottm@aero.org>2009-08-24 21:53:27 +0000
commit73ab81726b384015ac9bfe7f734fc13b93297c4c (patch)
tree2ffdc40a118f96311e8970ae25a17a567a9ae0e9 /lib/Target/CellSPU
parentaf26e32df3f129ac906a45c4527b5ee3641cb22d (diff)
downloadexternal_llvm-73ab81726b384015ac9bfe7f734fc13b93297c4c.zip
external_llvm-73ab81726b384015ac9bfe7f734fc13b93297c4c.tar.gz
external_llvm-73ab81726b384015ac9bfe7f734fc13b93297c4c.tar.bz2
Initialize ShufBytes, as gcc 4.4 can't detect that the entire array is
initialized and a warning about a potentially unintialized variable is generated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU')
-rw-r--r--lib/Target/CellSPU/SPUISelLowering.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/CellSPU/SPUISelLowering.cpp b/lib/Target/CellSPU/SPUISelLowering.cpp
index d0723dc..e8b5ae6 100644
--- a/lib/Target/CellSPU/SPUISelLowering.cpp
+++ b/lib/Target/CellSPU/SPUISelLowering.cpp
@@ -1963,7 +1963,9 @@ static SDValue LowerEXTRACT_VECTOR_ELT(SDValue Op, SelectionDAG &DAG) {
assert(prefslot_begin != -1 && prefslot_end != -1 &&
"LowerEXTRACT_VECTOR_ELT: preferred slots uninitialized");
- unsigned int ShufBytes[16];
+ unsigned int ShufBytes[16] = {
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ };
for (int i = 0; i < 16; ++i) {
// zero fill uppper part of preferred slot, don't care about the
// other slots: