@@ -854,7 +854,7 @@ bool TypeSanitizer::instrumentMemInst(Value *V, Instruction *ShadowBase,
854
854
855
855
if (!Src) {
856
856
IRB.CreateMemSet (ShadowData, IRB.getInt8 (0 ), IRB.CreateShl (Size , PtrShift),
857
- Align (1u << PtrShift));
857
+ Align (1ull << PtrShift));
858
858
return true ;
859
859
}
860
860
@@ -866,11 +866,11 @@ bool TypeSanitizer::instrumentMemInst(Value *V, Instruction *ShadowBase,
866
866
Value *SrcShadowData = IRB.CreateIntToPtr (SrcShadowDataInt, IRB.getPtrTy ());
867
867
868
868
if (NeedsMemMove) {
869
- IRB.CreateMemMove (ShadowData, Align (1u << PtrShift), SrcShadowData,
870
- Align (1u << PtrShift), IRB.CreateShl (Size , PtrShift));
869
+ IRB.CreateMemMove (ShadowData, Align (1ull << PtrShift), SrcShadowData,
870
+ Align (1ull << PtrShift), IRB.CreateShl (Size , PtrShift));
871
871
} else {
872
- IRB.CreateMemCpy (ShadowData, Align (1u << PtrShift), SrcShadowData,
873
- Align (1u << PtrShift), IRB.CreateShl (Size , PtrShift));
872
+ IRB.CreateMemCpy (ShadowData, Align (1ull << PtrShift), SrcShadowData,
873
+ Align (1ull << PtrShift), IRB.CreateShl (Size , PtrShift));
874
874
}
875
875
876
876
return true ;
0 commit comments