[PATCH] D41675: Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1)
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 17 18:32:18 PST 2018
reames accepted this revision.
reames added a comment.
This revision is now accepted and ready to land.
LGTM w/minor comment applied.
================
Comment at: lib/IR/IRBuilder.cpp:126
+ auto *MCI = cast<MemCpyInst>(CI);
+ if (Align > 0)
+ MCI->setAlignment(Align);
----------------
very minor:
if (Align > 0)
cast<MemCpyInst>(CI)->setAlignment(Align);
Repository:
rL LLVM
https://reviews.llvm.org/D41675
More information about the llvm-commits
mailing list