Index: lib/Transforms/Utils/LCSSA.cpp =================================================================== --- lib/Transforms/Utils/LCSSA.cpp +++ lib/Transforms/Utils/LCSSA.cpp @@ -92,9 +92,6 @@ assert(LoopExitBlocks.count(L)); const SmallVectorImpl &ExitBlocks = LoopExitBlocks[L]; - if (ExitBlocks.empty()) - continue; - // Tokens cannot be used in PHI nodes, so we skip over them. // We can run into tokens which are live out of a loop with catchswitch // instructions in Windows EH if the catchswitch has one catchpad which