aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/IfConversion.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-05-16 05:11:10 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-05-16 05:11:10 +0000
commitc5d05ef35780bf822765c5a3e2c13201450591ba (patch)
treeedf3050cba5da34a179db34a5d2bb9bec4776203 /lib/CodeGen/IfConversion.cpp
parent6c1d2b90e31ea3337705372d1757727d6764686d (diff)
Devang points out that we need an assertion here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/IfConversion.cpp')
-rw-r--r--lib/CodeGen/IfConversion.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp
index 57f6a8df5e..06be01386a 100644
--- a/lib/CodeGen/IfConversion.cpp
+++ b/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)