diff options
author | Daniel Neilson <dneilson@azul.com> | 2018-01-12 21:33:37 +0000 |
---|---|---|
committer | Daniel Neilson <dneilson@azul.com> | 2018-01-12 21:33:37 +0000 |
commit | 2409d2420156d34036c9d5e710cf790cee1746d9 (patch) | |
tree | 1747420bd1676e20ea3231ad85e759284438c944 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 44dfa1de3b79335ae59df168b9bf9775cdb35c99 (diff) | |
download | bcm5719-llvm-2409d2420156d34036c9d5e710cf790cee1746d9.tar.gz bcm5719-llvm-2409d2420156d34036c9d5e710cf790cee1746d9.zip |
[NFC] Change MemIntrinsicInst::setAlignment() to take an unsigned instead of a Constant
Summary:
In preparation for https://reviews.llvm.org/D41675 this NFC changes this
prototype of MemIntrinsicInst::setAlignment() to accept an unsigned instead
of a Constant.
llvm-svn: 322403
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 82a5ee03476..591df4d31ed 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -1610,7 +1610,7 @@ bool CodeGenPrepare::optimizeCallInst(CallInst *CI, bool &ModifiedDT) { if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) Align = std::min(Align, getKnownAlignment(MTI->getSource(), *DL)); if (Align > MI->getAlignment()) - MI->setAlignment(ConstantInt::get(MI->getAlignmentType(), Align)); + MI->setAlignment(Align); } } |