Fix -Wsign-compare warning in WinException.cpp
authorReid Kleckner <reid@kleckner.net>
Wed, 10 Jun 2015 00:04:53 +0000 (00:04 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 10 Jun 2015 00:04:53 +0000 (00:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239445 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/WinException.cpp

index 1143b044cad2c8e3719421afae84b723ac9741a0..7e3a6d5a76fd2733d2714f79af5422a4fd08019b 100644 (file)
@@ -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,