summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-09-10 09:01:18 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-09-10 09:01:18 +0000
commitb6722af06863b7133cf9e910ae0319b2a1c2ac78 (patch)
tree4dbaaf9645bc47954ae5d3bc52a2ea5fb3152f63 /llvm/lib/Target/PowerPC
parent3d7e9ab7b9f8c53aa41420c54970f0fb421004a2 (diff)
downloadbcm5719-llvm-b6722af06863b7133cf9e910ae0319b2a1c2ac78.tar.gz
bcm5719-llvm-b6722af06863b7133cf9e910ae0319b2a1c2ac78.zip
[Alignment] Use Align for TargetLowering::MinStackArgumentAlignment
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/D67288 llvm-svn: 371498
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 7847ea36d25..2c1d3f41e6c 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -139,7 +139,7 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
// On PPC32/64, arguments smaller than 4/8 bytes are extended, so all
// arguments are at least 4/8 bytes aligned.
bool isPPC64 = Subtarget.isPPC64();
- setMinStackArgumentAlignment(isPPC64 ? 8:4);
+ setMinStackArgumentAlignment(isPPC64 ? llvm::Align(8) : llvm::Align(4));
// Set up the register classes.
addRegisterClass(MVT::i32, &PPC::GPRCRegClass);
OpenPOWER on IntegriCloud