forked from OSchip/llvm-project
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:
parent
c44a3ff638
commit
83e723a9c9
|
@ -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) &&
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue