From a8c0a9b0429f83b2ec64ef828c89af49e6511cd1 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 10 Jun 2015 00:04:53 +0000 Subject: [PATCH] Fix -Wsign-compare warning in WinException.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239445 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/WinException.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.34.1