diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h --- a/llvm/include/llvm/IR/IRBuilder.h +++ b/llvm/include/llvm/IR/IRBuilder.h @@ -572,8 +572,9 @@ uint64_t Size, bool isVolatile = false, MDNode *TBAATag = nullptr, MDNode *ScopeTag = nullptr, MDNode *NoAliasTag = nullptr), "Use the version that takes MaybeAlign") { - return CreateMemMove(Dst, DstAlign, Src, SrcAlign, getInt64(Size), isVolatile, - TBAATag, ScopeTag, NoAliasTag); + return CreateMemMove(Dst, MaybeAlign(DstAlign), Src, MaybeAlign(SrcAlign), + getInt64(Size), isVolatile, TBAATag, ScopeTag, + NoAliasTag); } CallInst *CreateMemMove(Value *Dst, MaybeAlign DstAlign, Value *Src, MaybeAlign SrcAlign, uint64_t Size,