summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2015-09-05 01:00:51 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2015-09-05 01:00:51 +0000
commit2a9a6d8c38b78c757533ee6ba11e44c50d419395 (patch)
tree24957cba059ef1702f5cbc28e47d77bcc7df10fd /llvm/lib/Transforms
parent1b3fffa6e000b99041632b888eef9f72fcebcabb (diff)
downloadbcm5719-llvm-2a9a6d8c38b78c757533ee6ba11e44c50d419395.tar.gz
bcm5719-llvm-2a9a6d8c38b78c757533ee6ba11e44c50d419395.zip
Fix build warning
llvm-svn: 246903
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 1834b813453..3fd8c81fe4a 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -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
OpenPOWER on IntegriCloud