diff --git a/clang/lib/CodeGen/CGBuilder.h b/clang/lib/CodeGen/CGBuilder.h index 4daf0c760ef8..51c4a16e8d29 100644 --- a/clang/lib/CodeGen/CGBuilder.h +++ b/clang/lib/CodeGen/CGBuilder.h @@ -273,13 +273,13 @@ public: bool IsVolatile = false) { return CreateMemCpy(Dest.getPointer(), Src.getPointer(), Size, Dest.getAlignment().getQuantity(), - Src.getAlignment().getQuantity(), IsVolatile); + (unsigned)Src.getAlignment().getQuantity(), IsVolatile); } llvm::CallInst *CreateMemCpy(Address Dest, Address Src, uint64_t Size, bool IsVolatile = false) { return CreateMemCpy(Dest.getPointer(), Src.getPointer(), Size, Dest.getAlignment().getQuantity(), - Src.getAlignment().getQuantity(), IsVolatile); + (unsigned)Src.getAlignment().getQuantity(), IsVolatile); } using CGBuilderBaseTy::CreateMemMove; @@ -287,7 +287,8 @@ public: bool IsVolatile = false) { return CreateMemMove(Dest.getPointer(), Src.getPointer(), Size, Dest.getAlignment().getQuantity(), - Src.getAlignment().getQuantity(), IsVolatile); + (unsigned)Src.getAlignment().getQuantity(), + IsVolatile); } using CGBuilderBaseTy::CreateMemSet;