[PATCH] D71473: [Alignment][NFC] Deprecate untyped variants of CreateMemCpy/CreateMemMove

Denis Antrushin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 16 07:11:31 PST 2019


dantrushin added inline comments.


================
Comment at: llvm/include/llvm/IR/IRBuilder.h:575
+      "Use the version that takes MaybeAlign") {
     return CreateMemMove(Dst, DstAlign, Src, SrcAlign, getInt64(Size), isVolatile,
                          TBAATag, ScopeTag, NoAliasTag);
----------------
This incorrectly forwards to another deprecated function (at line 589)
DstAlign/SrcAlign must be explicitly converted to MaybeAlign  just like CreateMemCpy does


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71473/new/

https://reviews.llvm.org/D71473





More information about the llvm-commits mailing list