From 87ba3f122b0203cf71e10c5e48d2d35beb3b0fc3 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sun, 5 Feb 2012 18:56:50 +0000 Subject: [PATCH] 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 --- lib/Transforms/Scalar/GVN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1