forked from OSchip/llvm-project
Fix a thinko pointed out by Eli and the buildbots.
llvm-svn: 149839
This commit is contained in:
parent
4b613497f0
commit
12efb16b01
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue