summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit35fc2119b09554a454ec1b72ab4f64ee62497ff6 (patch)
tree978c98dae83486d627e3a735a08493bfb35f4d02 /llvm/lib/CodeGen/IfConversion.cpp
parentc4f5ac8383d6e9e14a62520e9930474b00d116f9 (diff)
downloadbcm5719-llvm-35fc2119b09554a454ec1b72ab4f64ee62497ff6.tar.gz
bcm5719-llvm-35fc2119b09554a454ec1b72ab4f64ee62497ff6.zip
Devang points out that we need an assertion here.
llvm-svn: 37097
Diffstat (limited to 'llvm/lib/CodeGen/IfConversion.cpp')
-rw-r--r--llvm/lib/CodeGen/IfConversion.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp
index 57f6a8df5e2..06be01386ab 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)
OpenPOWER on IntegriCloud