diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2019-09-30 13:34:44 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2019-09-30 13:34:44 +0000 |
commit | ab11b9188d75a9cc24faa1e76592e4a1903a6e20 (patch) | |
tree | 349aa49eb0636054f5b049d3c35f45baddce9e1c /clang/lib/CodeGen/CGCall.cpp | |
parent | 9b034293fa5d2dfdaa4dd894b88ce859f9042954 (diff) | |
download | bcm5719-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 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 0a0ba70d822..fc514beab17 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -3841,7 +3841,7 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, AI = CreateTempAlloca(ArgStruct, "argmem"); } auto Align = CallInfo.getArgStructAlignment(); - AI->setAlignment(Align.getQuantity()); + AI->setAlignment(llvm::MaybeAlign(Align.getQuantity())); AI->setUsedWithInAlloca(true); assert(AI->isUsedWithInAlloca() && !AI->isStaticAlloca()); ArgMemory = Address(AI, Align); |