diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2019-08-05 09:00:43 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2019-08-05 09:00:43 +0000 |
commit | 65e4b47aad33184ede8537c786cc80e6b8c32e92 (patch) | |
tree | 78abb50c221d0816da7787f7e5e5829dbe46af81 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 3046ef5c1101ff2b9480897a6b52d7d41a8ecf34 (diff) | |
download | llvm-65e4b47aad33184ede8537c786cc80e6b8c32e92.zip llvm-65e4b47aad33184ede8537c786cc80e6b8c32e92.tar.gz llvm-65e4b47aad33184ede8537c786cc80e6b8c32e92.tar.bz2 |
[LLVM][Alignment] Introduce Alignment Type in DataLayout
Summary:
This is patch is part of a serie 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, jfb, jakehehrlich
Subscribers: hiraditya, dexonsmith, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D65521
Make getFunctionPtrAlign() return MaybeAlign
llvm-svn: 367817
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 725bc70..68443c1 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -1152,7 +1152,7 @@ static unsigned enforceKnownAlignment(Value *V, unsigned Align, // If the preferred alignment is greater than the natural stack alignment // then don't round up. This avoids dynamic stack realignment. - if (DL.exceedsNaturalStackAlignment(PrefAlign)) + if (DL.exceedsNaturalStackAlignment(llvm::Align(PrefAlign))) return Align; AI->setAlignment(PrefAlign); return PrefAlign; |