diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2020-03-21 21:41:33 +0100 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2020-03-23 13:48:29 +0100 |
commit | 3ba550a05afa31e2de96a0cc8a50e0cdc73adfb3 (patch) | |
tree | 31384f947012777d7c4b354243255e151402a86f /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 16d2065cfc885633c62e772393cd1b56f453fa3b (diff) | |
download | llvm-3ba550a05afa31e2de96a0cc8a50e0cdc73adfb3.zip llvm-3ba550a05afa31e2de96a0cc8a50e0cdc73adfb3.tar.gz llvm-3ba550a05afa31e2de96a0cc8a50e0cdc73adfb3.tar.bz2 |
[Alignment][NFC] Use TFL::getStackAlign()
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: dylanmckay, sdardis, nemanjai, hiraditya, kbarton, asb, rbar, johnrusso, simoncook, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, atanasyan, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, Jim, lenary, s.egerton, pzheng, sameer.abuasal, apazos, luismarques, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76551
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 781ddc9..281d1bc 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -130,7 +130,7 @@ static inline unsigned getFnStackAlignment(const TargetSubtargetInfo *STI, const Function &F) { if (F.hasFnAttribute(Attribute::StackAlignment)) return F.getFnStackAlignment(); - return STI->getFrameLowering()->getStackAlignment(); + return STI->getFrameLowering()->getStackAlign().value(); } MachineFunction::MachineFunction(const Function &F, |