[llvm] r246903 - Fix build warning
Andrew Kaylor via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 4 18:00:52 PDT 2015
Author: akaylor
Date: Fri Sep 4 20:00:51 2015
New Revision: 246903
URL: http://llvm.org/viewvc/llvm-project?rev=246903&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=246903&r1=246902&r2=246903&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp Fri Sep 4 20:00:51 2015
@@ -2990,9 +2990,9 @@ bool SimplifyCFGOpt::SimplifyCleanupRetu
I != IE; ++I) {
PHINode *DestPN = cast<PHINode>(I);
- unsigned Idx = DestPN->getBasicBlockIndex(BB);
+ int Idx = DestPN->getBasicBlockIndex(BB);
// Since BB unwinds to UnwindDest, it has to be in the PHI node.
- assert(Idx != -1);
+ assert(Idx != -1U);
// 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