diff options
author | Eric Christopher <echristo@apple.com> | 2011-07-02 00:20:22 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-07-02 00:20:22 +0000 |
commit | aa7333c860ac651c75da495217e0d6a9c10c0bb0 (patch) | |
tree | 2c91312c6e6e5f89c2a1ce1a1ea1ec5320806490 /lib/CodeGen/CGObjC.cpp | |
parent | 1b03c8719e2e45cf2769430335d7e71f18e6634a (diff) |
Update for llvm commit r134291.
Fixes rdar://9714064
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | lib/CodeGen/CGObjC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp index 4c59e6ae29..db9873b817 100644 --- a/lib/CodeGen/CGObjC.cpp +++ b/lib/CodeGen/CGObjC.cpp @@ -2461,9 +2461,9 @@ void CodeGenFunction::EmitObjCAutoreleasePoolStmt( if (CGM.getLangOptions().ObjCAutoRefCount || (CGM.isTargetDarwin() && ((Triple.getArch() == llvm::Triple::x86_64 && - Triple.getDarwinMajorNumber() >= 11) + !Triple.isMacOSXVersionLT(10,7,0)) || (Triple.getEnvironmentName() == "iphoneos" && - Triple.getDarwinMajorNumber() >= 5)))) { + !Triple.isOSVersionLT(5,0))))) { llvm::Value *token = EmitObjCAutoreleasePoolPush(); EHStack.pushCleanup<CallObjCAutoreleasePoolObject>(NormalCleanup, token); } else { |