diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-05-31 20:53:33 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-05-31 20:53:33 +0000 |
commit | f15d44cc108a1ce8139b3c80fff7b99cbd651333 (patch) | |
tree | 516b110cd42b87f6fb26f6c69dbf2e44f142d915 /lib/CodeGen/IfConversion.cpp | |
parent | 3a4205367dc845d4cd804b47e061f8281777c9da (diff) |
Fix a typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/IfConversion.cpp')
-rw-r--r-- | lib/CodeGen/IfConversion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp index 431841c47f..637990971e 100644 --- a/lib/CodeGen/IfConversion.cpp +++ b/lib/CodeGen/IfConversion.cpp @@ -605,7 +605,7 @@ bool IfConverter::IfConvertDiamond(BBInfo &BBI) { // tail block, and the tail block does not have other predecessors, then // fold the tail block in as well. if (BBI.TailBB && - BBI.TailBB->succ_size() == 1 && CvtBBI->BB->succ_size() == 1) { + BBI.TailBB->pred_size() == 1 && CvtBBI->BB->succ_size() == 1) { CvtBBI->NonPredSize -= TII->RemoveBranch(*CvtBBI->BB); BBInfo TailBBI = BBAnalysis[BBI.TailBB->getNumber()]; MergeBlocks(*CvtBBI, TailBBI); |