r183837 - Silencing a signed vs unsigned comparison mismatch in MSVC.

Aaron Ballman aaron at aaronballman.com
Wed Jun 12 08:03:45 PDT 2013


Author: aaronballman
Date: Wed Jun 12 10:03:45 2013
New Revision: 183837

URL: http://llvm.org/viewvc/llvm-project?rev=183837&view=rev
Log:
Silencing a signed vs unsigned comparison mismatch in MSVC.

Modified:
    cfe/trunk/lib/CodeGen/TargetInfo.cpp

Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=183837&r1=183836&r2=183837&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Wed Jun 12 10:03:45 2013
@@ -2360,7 +2360,8 @@ void X86_64ABIInfo::computeInfo(CGFuncti
        it != ie; ++it) {
     bool isNamedArg = true;
     if (isVariadic)
-      isNamedArg = (it - FI.arg_begin()) < numRequiredArgs;
+      isNamedArg = (it - FI.arg_begin()) < 
+                    static_cast<signed>(numRequiredArgs);
 
     unsigned neededInt, neededSSE;
     it->info = classifyArgumentType(it->type, freeIntRegs, neededInt,





More information about the cfe-commits mailing list