summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CellSPU/SPUISelLowering.cpp
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
commitb54075e7b81fd32b5c78f83c436dbf7e3b73b830 (patch)
tree8e7be3d4aff46834c76f67b3431f3a369d4cb210 /llvm/lib/Target/CellSPU/SPUISelLowering.cpp
parentd749cbd9e24433917133bb6c738e5396989fd52e (diff)
downloadbcm5719-llvm-b54075e7b81fd32b5c78f83c436dbf7e3b73b830.tar.gz
bcm5719-llvm-b54075e7b81fd32b5c78f83c436dbf7e3b73b830.zip
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. llvm-svn: 79946
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPUISelLowering.cpp')
-rw-r--r--llvm/lib/Target/CellSPU/SPUISelLowering.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp b/llvm/lib/Target/CellSPU/SPUISelLowering.cpp
index d0723dc4212..e8b5ae6123c 100644
--- a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp
+++ b/llvm/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:
OpenPOWER on IntegriCloud