Index: lib/CodeGen/BranchFolding.cpp
===================================================================
--- lib/CodeGen/BranchFolding.cpp
+++ lib/CodeGen/BranchFolding.cpp
@@ -413,7 +413,7 @@
   if (UpdateLiveIns) {
     // OldInst should always point to an instruction.
     MachineBasicBlock &OldMBB = *OldInst->getParent();
-    LiveRegs.clear();
+    LiveRegs.init(*TRI);
     LiveRegs.addLiveOuts(OldMBB);
     // Move backward to the place where will insert the jump.
     MachineBasicBlock::iterator I = OldMBB.end();