[PowerPC] fix up in rL324229, NFC
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Tue, 6 Feb 2018 11:34:16 +0000 (11:34 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Tue, 6 Feb 2018 11:34:16 +0000 (11:34 +0000)
This patch fixes up my previous commit (add initialization of local variables).

llvm-svn: 324336

llvm/lib/Target/PowerPC/PPCCTRLoops.cpp

index e853a3c..ae9b8c5 100644 (file)
@@ -535,7 +535,7 @@ bool PPCCTRLoops::convertToCTRLoop(Loop *L) {
     if (!TI) continue;
 
     if (BranchInst *BI = dyn_cast<BranchInst>(TI)) {
-      uint64_t TrueWeight, FalseWeight;
+      uint64_t TrueWeight = 0, FalseWeight = 0;
       if (!BI->isConditional() ||
           !BI->extractProfMetadata(TrueWeight, FalseWeight))
         continue;