[llvm] r239445 - Fix -Wsign-compare warning in WinException.cpp

Reid Kleckner reid at kleckner.net
Tue Jun 9 17:04:53 PDT 2015


Author: rnk
Date: Tue Jun  9 19:04:53 2015
New Revision: 239445

URL: http://llvm.org/viewvc/llvm-project?rev=239445&view=rev
Log:
Fix -Wsign-compare warning in WinException.cpp

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp?rev=239445&r1=239444&r2=239445&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp Tue Jun  9 19:04:53 2015
@@ -602,7 +602,8 @@ void WinException::emitExceptHandlerTabl
   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,





More information about the llvm-commits mailing list