From: Reid Kleckner Date: Wed, 10 Jun 2015 00:04:53 +0000 (+0000) Subject: Fix -Wsign-compare warning in WinException.cpp X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a8c0a9b0429f83b2ec64ef828c89af49e6511cd1;p=oota-llvm.git Fix -Wsign-compare warning in WinException.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239445 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/WinException.cpp b/lib/CodeGen/AsmPrinter/WinException.cpp index 1143b044cad..7e3a6d5a76f 100644 --- a/lib/CodeGen/AsmPrinter/WinException.cpp +++ b/lib/CodeGen/AsmPrinter/WinException.cpp @@ -602,7 +602,8 @@ void WinException::emitExceptHandlerTable(const MachineFunction *MF) { int CurState = 0; for (const LandingPadInfo *LPInfo : LPads) { int EnclosingLevel = BaseState; - assert(CurState + LPInfo->SEHHandlers.size() - 1 == LPInfo->WinEHState && + assert(CurState + int(LPInfo->SEHHandlers.size()) - 1 == + LPInfo->WinEHState && "gaps in the SEH scope table"); for (const SEHHandler &Handler : LPInfo->SEHHandlers) { // Emit the filter or finally function pointer, if present. Otherwise,