From b6a09c74282cbdb298252a7294aec23c4ee9ce06 Mon Sep 17 00:00:00 2001 From: Andrew Kaylor Date: Sat, 5 Sep 2015 01:00:51 +0000 Subject: [PATCH] Fix build warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246903 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/SimplifyCFG.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 1834b813453..3fd8c81fe4a 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -2990,9 +2990,9 @@ bool SimplifyCFGOpt::SimplifyCleanupReturn(CleanupReturnInst *RI) { I != IE; ++I) { PHINode *DestPN = cast(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 -- 2.34.1