[llvm] r246908 - Fix build warning.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 4 21:49:44 PDT 2015


Author: ctopper
Date: Fri Sep  4 23:49:44 2015
New Revision: 246908

URL: http://llvm.org/viewvc/llvm-project?rev=246908&view=rev
Log:
Fix build warning.

Modified:
    llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp

Modified: llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp?rev=246908&r1=246907&r2=246908&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp Fri Sep  4 23:49:44 2015
@@ -2992,7 +2992,7 @@ bool SimplifyCFGOpt::SimplifyCleanupRetu
  
       int Idx = DestPN->getBasicBlockIndex(BB);
       // Since BB unwinds to UnwindDest, it has to be in the PHI node.
-      assert(Idx != -1U);
+      assert(Idx != -1);
       // This PHI node has an incoming value that corresponds to a control
       // path through the cleanup pad we are removing.  If the incoming
       // value is in the cleanup pad, it must be a PHINode (because we




More information about the llvm-commits mailing list