summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2015-05-11 20:45:11 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2015-05-11 20:45:11 +0000
commitce6f907e2f585f724d3befe26f6542001144edb5 (patch)
tree784be727e8b80c7a68aca06abf1ef6b4785aa246
parenteffd27a22b810d51048fe115809151e773698e99 (diff)
downloadbcm5719-llvm-ce6f907e2f585f724d3befe26f6542001144edb5.tar.gz
bcm5719-llvm-ce6f907e2f585f724d3befe26f6542001144edb5.zip
Fixing build warnings
llvm-svn: 237042
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
index 3248ac71aa2..21a00583bf0 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
@@ -453,7 +453,7 @@ void WinEHNumbering::processCallSite(ArrayRef<ActionHandler *> 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<ActionHandler *> 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() !=
OpenPOWER on IntegriCloud