summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r--clang/lib/Basic/Targets.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index 6be83d22a25..f8e29ff3375 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -5382,6 +5382,11 @@ public:
// ARM has atomics up to 8 bytes
setAtomic();
+ if (Triple.getEnvironment() == llvm::Triple::Android)
+ MaxVectorAlign = 128; // don't break existing Android ABI
+ else
+ MaxVectorAlign = 64; // AAPCS
+
// Do force alignment of members that follow zero length bitfields. If
// the alignment of the zero-length bitfield is greater than the member
// that follows it, `bar', `bar' will be aligned as the type of the
OpenPOWER on IntegriCloud