aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2022-06-17 15:13:10 +0000
committerGuillaume Chatelet <gchatelet@google.com>2022-06-17 15:21:17 +0000
commit90f96ec7a52e840cdc65035cb3beca620032be69 (patch)
tree73748adb01bc14d8ee8d4283291e376504f6e75c /llvm/lib/CodeGen/MachineFunction.cpp
parentdeb7655209a7d74257b651ade97bfc63043174ec (diff)
downloadllvm-90f96ec7a52e840cdc65035cb3beca620032be69.zip
llvm-90f96ec7a52e840cdc65035cb3beca620032be69.tar.gz
llvm-90f96ec7a52e840cdc65035cb3beca620032be69.tar.bz2
[NFC][Alignment] Remove assumeAligned from MachineFrameInfo ctor
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index eabcb2b..f58996e 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -152,11 +152,11 @@ void ilist_alloc_traits<MachineBasicBlock>::deleteNode(MachineBasicBlock *MBB) {
MBB->getParent()->deleteMachineBasicBlock(MBB);
}
-static inline unsigned getFnStackAlignment(const TargetSubtargetInfo *STI,
+static inline Align getFnStackAlignment(const TargetSubtargetInfo *STI,
const Function &F) {
if (auto MA = F.getFnStackAlign())
- return MA->value();
- return STI->getFrameLowering()->getStackAlign().value();
+ return *MA;
+ return STI->getFrameLowering()->getStackAlign();
}
MachineFunction::MachineFunction(Function &F, const LLVMTargetMachine &Target,