From faeac4ca79dc21b014b53081297301e1a788d940 Mon Sep 17 00:00:00 2001
From: Iain Sandoe <iain@sandoe.co.uk>
Date: Wed, 17 Apr 2019 21:59:30 +0530
Subject: [PATCH] [llvm, darwin, ppc] Fix up DL for powerpc alignment
 rules.

Preferred = natural, ABI = reduced.
---
 llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
index 199bc48b5e0..0c4733db451 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -130,7 +130,7 @@ static std::string getDataLayoutString(const Triple &T) {
   if (is64Bit || !T.isOSDarwin())
     Ret += "-i64:64";
   else
-    Ret += "-f64:32:64";
+    Ret += "-f64:32:64-i64:32:64";
 
   // PPC64 has 32 and 64 bit registers, PPC32 has only 32 bit ones.
   if (is64Bit)
