summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-06-10 00:04:53 +0000
committerReid Kleckner <reid@kleckner.net>2015-06-10 00:04:53 +0000
commit7912d9b8999266e55ff40e15d37fa458e66f436c (patch)
tree0a32b0d77bc57f31b604e1c1c6fc08568713175c
parent17d6359488e302bdd5d1ef1b8b8ebcc53c2cde23 (diff)
downloadbcm5719-llvm-7912d9b8999266e55ff40e15d37fa458e66f436c.tar.gz
bcm5719-llvm-7912d9b8999266e55ff40e15d37fa458e66f436c.zip
Fix -Wsign-compare warning in WinException.cpp
llvm-svn: 239445
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/WinException.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
index 1143b044cad..7e3a6d5a76f 100644
--- a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
+++ b/llvm/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,
OpenPOWER on IntegriCloud