aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2020-03-18 17:04:10 +0100
committerGuillaume Chatelet <gchatelet@google.com>2020-03-23 11:31:33 +0100
commitea64ee0edb27607fc04d287809099f02fce50315 (patch)
treeaad67d5e330e66b764451154697b6a6ef197c5ec /llvm/lib/CodeGen/MachineFunction.cpp
parent6a6a83c6e9bf6ed5e8592bbe422535dd774e5064 (diff)
downloadllvm-ea64ee0edb27607fc04d287809099f02fce50315.zip
llvm-ea64ee0edb27607fc04d287809099f02fce50315.tar.gz
llvm-ea64ee0edb27607fc04d287809099f02fce50315.tar.bz2
[Alignment][NFC] Deprecate ensureMaxAlignment
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: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76368
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 76a1bd9..781ddc9 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -172,7 +172,7 @@ void MachineFunction::init() {
F.hasFnAttribute(Attribute::StackAlignment));
if (F.hasFnAttribute(Attribute::StackAlignment))
- FrameInfo->ensureMaxAlignment(F.getFnStackAlignment());
+ FrameInfo->ensureMaxAlignment(*F.getFnStackAlign());
ConstantPool = new (Allocator) MachineConstantPool(getDataLayout());
Alignment = STI->getTargetLowering()->getMinFunctionAlignment();