r218121 - Silence a signed/unsigned mismatch warning from MSVC; NFC.

Aaron Ballman aaron at aaronballman.com
Fri Sep 19 05:21:56 PDT 2014


Author: aaronballman
Date: Fri Sep 19 07:21:56 2014
New Revision: 218121

URL: http://llvm.org/viewvc/llvm-project?rev=218121&view=rev
Log:
Silence a signed/unsigned mismatch warning from MSVC; NFC.

Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=218121&r1=218120&r2=218121&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Fri Sep 19 07:21:56 2014
@@ -3117,7 +3117,7 @@ bool X86TargetInfo::validateOperandSize(
     return Size <= 128;
   case 'x':
     // 256-bit ymm registers can be used if target supports AVX.
-    return Size <= (SSELevel >= AVX ? 256 : 128);
+    return Size <= (SSELevel >= AVX ? 256U : 128U);
   }
 
   return true;





More information about the cfe-commits mailing list