[llvm-commits] [llvm] r91477 - /llvm/trunk/lib/CodeGen/BranchFolding.cpp

Bill Wendling isanbard at gmail.com
Tue Dec 15 16:01:27 PST 2009


Author: void
Date: Tue Dec 15 18:01:27 2009
New Revision: 91477

URL: http://llvm.org/viewvc/llvm-project?rev=91477&view=rev
Log:
Initialize uninitialized variables.

Modified:
    llvm/trunk/lib/CodeGen/BranchFolding.cpp

Modified: llvm/trunk/lib/CodeGen/BranchFolding.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/BranchFolding.cpp?rev=91477&r1=91476&r2=91477&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/BranchFolding.cpp (original)
+++ llvm/trunk/lib/CodeGen/BranchFolding.cpp Tue Dec 15 18:01:27 2009
@@ -1274,7 +1274,7 @@
       // Okay, there is no really great place to put this block.  If, however,
       // the block before this one would be a fall-through if this block were
       // removed, move this block to the end of the function.
-      MachineBasicBlock *PrevTBB, *PrevFBB;
+      MachineBasicBlock *PrevTBB = 0, *PrevFBB = 0;
       SmallVector<MachineOperand, 4> PrevCond;
       if (FallThrough != MF.end() &&
           !TII->AnalyzeBranch(PrevBB, PrevTBB, PrevFBB, PrevCond, true) &&





More information about the llvm-commits mailing list