Fix assertion failure left over from changes to move away from "darwin" triples.

I happened to notice this while trying to write a test for an iOS simulator
target. I suspect we just missed this when we added separate "macosx" and "ios"
triples instead of the generic "darwin" OS.

llvm-svn: 196527
This commit is contained in:
Bob Wilson 2013-12-05 19:38:42 +00:00
parent c44a3ff638
commit 83e723a9c9
2 changed files with 4 additions and 1 deletions

View File

@ -1594,7 +1594,7 @@ shouldUseExceptionTablesForObjCExceptions(const ObjCRuntime &runtime,
if (runtime.isNonFragile())
return true;
if (!Triple.isOSDarwin())
if (!Triple.isMacOSX())
return false;
return (!Triple.isMacOSXVersionLT(10,5) &&

View File

@ -30,3 +30,6 @@
// CHECK-CHECK-I386_IOS: -fexceptions
// CHECK-CHECK-I386_IOS-NOT: -fobjc-dispatch-method
// CHECK-CHECK-I386_IOS: darwin-objc-options
// Don't crash with an unexpected target triple.
// RUN: %clang -target i386-apple-ios7 -S -### %s