summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains/Arch
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2017-08-17 23:14:01 +0000
committerTim Northover <tnorthover@apple.com>2017-08-17 23:14:01 +0000
commit48fff995d62b227e742c53f472c04e8ac11a3ede (patch)
treec774b27eae44f2dffaa6a904c5c538e89d1d0879 /clang/lib/Driver/ToolChains/Arch
parentdea43983ae0efb1cde6ea7e76cc8730407656b74 (diff)
downloadbcm5719-llvm-48fff995d62b227e742c53f472c04e8ac11a3ede.tar.gz
bcm5719-llvm-48fff995d62b227e742c53f472c04e8ac11a3ede.zip
GlobalISel (AArch64): fix ABI at border between GPRs and SP.
If a struct would end up half in GPRs and half on SP the ABI says it should actually go entirely on the stack. We were getting this wrong in GlobalISel before, causing compatibility issues. llvm-svn: 311137
Diffstat (limited to 'clang/lib/Driver/ToolChains/Arch')
-rw-r--r--clang/lib/Driver/ToolChains/Arch/ARM.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains/Arch/ARM.cpp b/clang/lib/Driver/ToolChains/Arch/ARM.cpp
index 49bb23535d7..c69efd96e80 100644
--- a/clang/lib/Driver/ToolChains/Arch/ARM.cpp
+++ b/clang/lib/Driver/ToolChains/Arch/ARM.cpp
@@ -438,7 +438,7 @@ void arm::getARMTargetFeatures(const ToolChain &TC,
//
// The above behavior is consistent with GCC.
int VersionNum = getARMSubArchVersionNumber(Triple);
- if (Triple.isOSDarwin() || Triple.isOSNetBSD()) {
+ if (Triple.isOSBinFormatMachO() || Triple.isOSNetBSD()) {
if (VersionNum < 6 ||
Triple.getSubArch() == llvm::Triple::SubArchType::ARMSubArch_v6m)
Features.push_back("+strict-align");
OpenPOWER on IntegriCloud