Fix a thinko pointed out by Eli and the buildbots.

llvm-svn: 149839
This commit is contained in:
Duncan Sands 2012-02-05 18:56:50 +00:00
parent 4b613497f0
commit 12efb16b01
1 changed files with 1 additions and 1 deletions

View File

@ -2000,7 +2000,7 @@ static bool isOnlyReachableViaThisEdge(BasicBlock *Src, BasicBlock *Dst,
// GVN runs all such loops have preheaders, which means that Dst will have
// been changed to have only one predecessor, namely Src.
pred_iterator PI = pred_begin(Dst), PE = pred_end(Dst);
assert(PI != PE && *PI == Src && "No edge between these basic blocks!");
assert(PI != PE && "No edge between these basic blocks!");
(void)Src;
return PE == ++PI;
}