From: Duncan Sands Date: Sun, 5 Feb 2012 18:56:50 +0000 (+0000) Subject: Fix a thinko pointed out by Eli and the buildbots. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=87ba3f122b0203cf71e10c5e48d2d35beb3b0fc3;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 70012524dc6..f6d6b90b99a 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -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; }