From a1945939bd620a547d8d785eff2ad35ad6d87938 Mon Sep 17 00:00:00 2001 From: Andrew Kaylor Date: Mon, 11 May 2015 20:45:11 +0000 Subject: [PATCH] Fixing build warnings git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237042 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index 3248ac71aa2..21a00583bf0 100644 --- a/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp @@ -453,7 +453,7 @@ void WinEHNumbering::processCallSite(ArrayRef Actions, auto Handlers = makeArrayRef(&PoppedCatches[LastTryLowIdx], I - LastTryLowIdx + 1); DEBUG(dbgs() << "createTryBlockMapEntry(" << TryLow << ", " << TryHigh); - for (int J = 0; J < Handlers.size(); ++J) { + for (size_t J = 0; J < Handlers.size(); ++J) { DEBUG(dbgs() << ", "); print_name(Handlers[J]->getHandlerBlockOrFunc()); } @@ -481,7 +481,7 @@ void WinEHNumbering::processCallSite(ArrayRef Actions, // The handler functions may have pushed actions onto the handler stack // that we expected to push here. Compare the handler stack to our // actions again to check for that possibility. - if (HandlerStack.size() > FirstMismatch) { + if (HandlerStack.size() > (size_t)FirstMismatch) { for (int E = std::min(HandlerStack.size(), Actions.size()); FirstMismatch < E; ++FirstMismatch) { if (HandlerStack[FirstMismatch]->getHandlerBlockOrFunc() != -- 2.34.1