diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp index 57f6a8df5e2c..06be01386ab5 100644 --- a/llvm/lib/CodeGen/IfConversion.cpp +++ b/llvm/lib/CodeGen/IfConversion.cpp @@ -141,6 +141,8 @@ void IfConverter::AnalyzeBlock(MachineBasicBlock *BB) { if (!BBI.FBB) BBI.FBB = findFalseBlock(BB, BBI.TBB); + assert(BBI.FBB && "Expected to find the fallthrough block!"); + AnalyzeBlock(BBI.FBB); BBInfo &FBBI = BBAnalysis[BBI.FBB->getNumber()]; if (FBBI.Kind != ICNotClassfied)