diff options
author | Arthur Eubanks <aeubanks@google.com> | 2021-08-19 14:20:59 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2021-08-19 14:21:40 -0700 |
commit | 7c8206cd2ad62cd65a1267e974fd9d49d5ff01a6 (patch) | |
tree | 90f437fd7e2d0b4b751767dcfb3ced76dec3a2e1 /llvm/lib/IR/Attributes.cpp | |
parent | cd28003336c7ada59f889cb92ee121d508e076d6 (diff) | |
download | llvm-7c8206cd2ad62cd65a1267e974fd9d49d5ff01a6.zip llvm-7c8206cd2ad62cd65a1267e974fd9d49d5ff01a6.tar.gz llvm-7c8206cd2ad62cd65a1267e974fd9d49d5ff01a6.tar.bz2 |
[NFC] Cleanup AttributeList::getStackAlignment()
So that we don't use a confusing index.
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index d8765cc..3eca9a0 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -1462,8 +1462,12 @@ Type *AttributeList::getParamElementType(unsigned Index) const { return getAttributes(Index + FirstArgIndex).getElementType(); } -MaybeAlign AttributeList::getStackAlignment(unsigned Index) const { - return getAttributes(Index).getStackAlignment(); +MaybeAlign AttributeList::getFnStackAlignment() const { + return getFnAttrs().getStackAlignment(); +} + +MaybeAlign AttributeList::getRetStackAlignment() const { + return getRetAttrs().getStackAlignment(); } uint64_t AttributeList::getRetDereferenceableBytes() const { |