[PATCH] D26069: Fix uninitialized access in MachineBlockPlacement.

Sam McCall via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 1 15:11:56 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL285757: Fix uninitialized access in MachineBlockPlacement. (authored by sammccall).

Changed prior to commit:
  https://reviews.llvm.org/D26069?vs=76179&id=76640#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D26069

Files:
  llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp


Index: llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp
+++ llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp
@@ -1599,6 +1599,7 @@
   collectMustExecuteBBs();
 
   // Build any loop-based chains.
+  PreferredLoopExit = nullptr;
   for (MachineLoop *L : *MLI)
     buildLoopChains(*L);
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26069.76640.patch
Type: text/x-patch
Size: 408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161101/59b820e4/attachment.bin>


More information about the llvm-commits mailing list