summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/Inliner.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-09-30 13:34:44 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-09-30 13:34:44 +0000
commitab11b9188d75a9cc24faa1e76592e4a1903a6e20 (patch)
tree349aa49eb0636054f5b049d3c35f45baddce9e1c /llvm/lib/Transforms/IPO/Inliner.cpp
parent9b034293fa5d2dfdaa4dd894b88ce859f9042954 (diff)
downloadbcm5719-llvm-ab11b9188d75a9cc24faa1e76592e4a1903a6e20.tar.gz
bcm5719-llvm-ab11b9188d75a9cc24faa1e76592e4a1903a6e20.zip
[Alignment][NFC] Remove AllocaInst::setAlignment(unsigned)
Summary: This is patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Reviewers: courbet Subscribers: jholewinski, arsenm, jvesely, nhaehnle, eraman, hiraditya, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D68141 llvm-svn: 373207
Diffstat (limited to 'llvm/lib/Transforms/IPO/Inliner.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/Inliner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp
index 1bda405da7f..4b72261131c 100644
--- a/llvm/lib/Transforms/IPO/Inliner.cpp
+++ b/llvm/lib/Transforms/IPO/Inliner.cpp
@@ -239,7 +239,7 @@ static void mergeInlinedArrayAllocas(
}
if (Align1 > Align2)
- AvailableAlloca->setAlignment(AI->getAlignment());
+ AvailableAlloca->setAlignment(MaybeAlign(AI->getAlignment()));
}
AI->eraseFromParent();
OpenPOWER on IntegriCloud