mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-06 20:10:26 +00:00
Fix build warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6d7a4a2886
commit
b6a09c7428
@ -2990,9 +2990,9 @@ bool SimplifyCFGOpt::SimplifyCleanupReturn(CleanupReturnInst *RI) {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user