Fix a thinko pointed out by Eli and the buildbots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149839 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2012-02-05 18:56:50 +00:00
parent 33756f96d7
commit 87ba3f122b

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;
}