[llvm] r245161 - Silence VS2015 warning.
Yaron Keren via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 15 07:54:44 PDT 2015
Author: yrnkrn
Date: Sat Aug 15 09:54:43 2015
New Revision: 245161
URL: http://llvm.org/viewvc/llvm-project?rev=245161&view=rev
Log:
Silence VS2015 warning.
Patch by James Touton!
http://reviews.llvm.org/D11890
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=245161&r1=245160&r2=245161&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Aug 15 09:54:43 2015
@@ -4981,7 +4981,7 @@ LowerAsSplatVectorLoad(SDValue SrcOp, MV
return SDValue();
if ((Offset % RequiredAlign) & 3)
return SDValue();
- int64_t StartOffset = Offset & ~(RequiredAlign-1);
+ int64_t StartOffset = Offset & ~int64_t(RequiredAlign - 1);
if (StartOffset) {
SDLoc DL(Ptr);
Ptr = DAG.getNode(ISD::ADD, DL, Ptr.getValueType(), Ptr,
More information about the llvm-commits
mailing list