From eba7d2fe3aa97e9203f82714c66f321ff7416bcf Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 12 Jun 2013 15:03:45 +0000 Subject: [PATCH] Silencing a signed vs unsigned comparison mismatch in MSVC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183837 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/TargetInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 981a38d7ff..09f7779146 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -2360,7 +2360,8 @@ void X86_64ABIInfo::computeInfo(CGFunctionInfo &FI) const { it != ie; ++it) { bool isNamedArg = true; if (isVariadic) - isNamedArg = (it - FI.arg_begin()) < numRequiredArgs; + isNamedArg = (it - FI.arg_begin()) < + static_cast(numRequiredArgs); unsigned neededInt, neededSSE; it->info = classifyArgumentType(it->type, freeIntRegs, neededInt, -- 2.50.1