aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-12-16 15:19:09 +0100
committerGuillaume Chatelet <gchatelet@google.com>2019-12-16 15:19:49 +0100
commit4658da10e4aabd15868876d879cfb185115a170c (patch)
tree840df36eddd3ce916a068e88a906164a2609a7ef /llvm/lib/Transforms/Utils/InlineFunction.cpp
parentf4dfae9bb5c4099e9d17986a52ad8822522dc229 (diff)
downloadllvm-4658da10e4aabd15868876d879cfb185115a170c.zip
llvm-4658da10e4aabd15868876d879cfb185115a170c.tar.gz
llvm-4658da10e4aabd15868876d879cfb185115a170c.tar.bz2
Revert "[Alignment][NFC] Deprecate CreateMemCpy/CreateMemMove"
This reverts commit 181ab91efc9fb08dedda10a2fbc5fccb83ce8799.
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 401a0e8..770dad0 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -1254,8 +1254,7 @@ static void HandleByValArgumentInit(Value *Dst, Value *Src, Module *M,
// Always generate a memcpy of alignment 1 here because we don't know
// the alignment of the src pointer. Other optimizations can infer
// better alignment.
- Builder.CreateMemCpy(Dst, /*DstAlign*/ Align::None(), Src,
- /*SrcAlign*/ Align::None(), Size);
+ Builder.CreateMemCpy(Dst, /*DstAlign*/1, Src, /*SrcAlign*/1, Size);
}
/// When inlining a call site that has a byval argument,