diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-04-19 18:38:31 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-04-19 18:38:31 +0000 |
commit | 794afcb7049bdc82a2e7391e2f84d32446a7ffae (patch) | |
tree | 9cd4e9f0ca1976fce1caf549a50d7da437272e83 /lib/CodeGen/CGObjCMac.cpp | |
parent | 765bb8125bfc236a2cfa20d7dc26ae2f3395190b (diff) |
Check for darwin befoer cheking for version.
(related to radar 7866951).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCMac.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index d70537e49c..5af3f5815c 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -4265,7 +4265,8 @@ bool CGObjCNonFragileABIMac::LegacyDispatchedSelector(Selector Sel) { if (CGM.getCodeGenOpts().ObjCLegacyDispatch) return true; /* Leopard */ - if (CGM.getContext().Target.getTriple().getDarwinMajorNumber() <= 9) + if (CGM.getContext().Target.getTriple().getOS() == llvm::Triple::Darwin && + CGM.getContext().Target.getTriple().getDarwinMajorNumber() <= 9) return false; if (NonLegacyDispatchMethods.empty()) { |