summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorHiroshi Inoue <inouehrs@jp.ibm.com>2018-06-01 14:23:15 +0000
committerHiroshi Inoue <inouehrs@jp.ibm.com>2018-06-01 14:23:15 +0000
commit9796b47df1a2dd2a0f16dff7752d8bbd8e52533e (patch)
tree0d3a5a18014af60020f295a8a81b9c53addbf8f1 /llvm/lib/Target/PowerPC
parentdf79e79e225c05d1b4e6fce51d17b038e1caf863 (diff)
downloadbcm5719-llvm-9796b47df1a2dd2a0f16dff7752d8bbd8e52533e.tar.gz
bcm5719-llvm-9796b47df1a2dd2a0f16dff7752d8bbd8e52533e.zip
[NFC] Zero initialize local variables
This patch makes local variables zero initialized to avoid broken values in debug output. llvm-svn: 333754
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index 067215ab464..a0f12ecd9d7 100644
--- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -2253,7 +2253,7 @@ public:
// set of bit groups, and then mask in the zeros at the end. With early
// masking, we only insert the non-zero parts of the result at every step.
- unsigned InstCnt, InstCntLateMask;
+ unsigned InstCnt = 0, InstCntLateMask = 0;
LLVM_DEBUG(dbgs() << "\tEarly masking:\n");
SDNode *RN = Select(N, false, &InstCnt);
LLVM_DEBUG(dbgs() << "\t\tisel would use " << InstCnt << " instructions\n");
OpenPOWER on IntegriCloud