Index: lib/CodeGen/MachineBlockPlacement.cpp =================================================================== --- lib/CodeGen/MachineBlockPlacement.cpp +++ lib/CodeGen/MachineBlockPlacement.cpp @@ -2650,6 +2650,7 @@ } assert(BlockToChain.empty()); + assert(ComputedEdges.empty()); buildCFGChains(); @@ -2683,6 +2684,7 @@ alignBlocks(); BlockToChain.clear(); + ComputedEdges.clear(); ChainAllocator.DestroyAll(); if (AlignAllBlock)