aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFrameInfo.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-09-18 15:40:20 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-09-18 15:40:20 +0000
commit35b4b403b441c7105a58fcfe35748ccfd89faf53 (patch)
treebb0b5aae8dd178b9f9004210fdb8cf4b140f286a /llvm/lib/CodeGen/MachineFrameInfo.cpp
parentf124ab9fe11574b11d47397af70555766acf25f9 (diff)
downloadllvm-35b4b403b441c7105a58fcfe35748ccfd89faf53.zip
llvm-35b4b403b441c7105a58fcfe35748ccfd89faf53.tar.gz
llvm-35b4b403b441c7105a58fcfe35748ccfd89faf53.tar.bz2
[Alignment][NFC] Use Align::None instead of 1
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: sdardis, nemanjai, hiraditya, kbarton, jrtc27, MaskRay, atanasyan, jsji, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67704 llvm-svn: 372230
Diffstat (limited to 'llvm/lib/CodeGen/MachineFrameInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFrameInfo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineFrameInfo.cpp b/llvm/lib/CodeGen/MachineFrameInfo.cpp
index e045e4e..de14618 100644
--- a/llvm/lib/CodeGen/MachineFrameInfo.cpp
+++ b/llvm/lib/CodeGen/MachineFrameInfo.cpp
@@ -89,8 +89,8 @@ int MachineFrameInfo::CreateFixedObject(uint64_t Size, int64_t SPOffset,
// object is 16-byte aligned. Note that unlike the non-fixed case, if the
// stack needs realignment, we can't assume that the stack will in fact be
// aligned.
- llvm::Align Alignment =
- commonAlignment(ForcedRealign ? llvm::Align() : StackAlignment, SPOffset);
+ llvm::Align Alignment = commonAlignment(
+ ForcedRealign ? llvm::Align::None() : StackAlignment, SPOffset);
Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment);
Objects.insert(Objects.begin(),
StackObject(Size, Alignment, SPOffset, IsImmutable,
@@ -102,8 +102,8 @@ int MachineFrameInfo::CreateFixedObject(uint64_t Size, int64_t SPOffset,
int MachineFrameInfo::CreateFixedSpillStackObject(uint64_t Size,
int64_t SPOffset,
bool IsImmutable) {
- llvm::Align Alignment =
- commonAlignment(ForcedRealign ? llvm::Align() : StackAlignment, SPOffset);
+ llvm::Align Alignment = commonAlignment(
+ ForcedRealign ? llvm::Align::None() : StackAlignment, SPOffset);
Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment);
Objects.insert(Objects.begin(),
StackObject(Size, Alignment, SPOffset, IsImmutable,