@@ -588,34 +588,34 @@ bool toolchains::Darwin::shouldStoreInvocationInDebugInfo() const {
588
588
static void validateDeploymentTarget (const toolchains::Darwin& TC,
589
589
DiagnosticEngine &diags,
590
590
const llvm::opt::ArgList &args) {
591
- // Check minimum supported OS versions.
592
- auto triple = TC.getTriple ();
593
- if (triple.isMacOSX ()) {
594
- if (triple.isMacOSXVersionLT (10 , 9 ))
595
- diags.diagnose (SourceLoc (), diag::error_os_minimum_deployment,
596
- " OS X 10.9" );
597
- } else if (triple.isiOS ()) {
598
- if (triple.isTvOS ()) {
599
- if (triple.isOSVersionLT (9 , 0 )) {
600
- diags.diagnose (SourceLoc (), diag::error_os_minimum_deployment,
601
- " tvOS 9.0" );
602
- return ;
603
- }
604
- }
605
- if (triple.isOSVersionLT (7 ))
606
- diags.diagnose (SourceLoc (), diag::error_os_minimum_deployment,
607
- " iOS 7" );
608
- if (triple.isArch32Bit () && !triple.isOSVersionLT (11 )) {
609
- diags.diagnose (SourceLoc (), diag::error_ios_maximum_deployment_32,
610
- triple.getOSMajorVersion ());
611
- }
612
- } else if (triple.isWatchOS ()) {
613
- if (triple.isOSVersionLT (2 , 0 )) {
614
- diags.diagnose (SourceLoc (), diag::error_os_minimum_deployment,
615
- " watchOS 2.0" );
616
- return ;
617
- }
591
+ // Check minimum supported OS versions.
592
+ auto triple = TC.getTriple ();
593
+ if (triple.isMacOSX ()) {
594
+ if (triple.isMacOSXVersionLT (10 , 9 ))
595
+ diags.diagnose (SourceLoc (), diag::error_os_minimum_deployment,
596
+ " OS X 10.9" );
597
+ } else if (triple.isiOS ()) {
598
+ if (triple.isTvOS ()) {
599
+ if (triple.isOSVersionLT (9 , 0 )) {
600
+ diags.diagnose (SourceLoc (), diag::error_os_minimum_deployment,
601
+ " tvOS 9.0" );
602
+ return ;
603
+ }
618
604
}
605
+ if (triple.isOSVersionLT (7 ))
606
+ diags.diagnose (SourceLoc (), diag::error_os_minimum_deployment,
607
+ " iOS 7" );
608
+ if (triple.isArch32Bit () && !triple.isOSVersionLT (11 )) {
609
+ diags.diagnose (SourceLoc (), diag::error_ios_maximum_deployment_32,
610
+ triple.getOSMajorVersion ());
611
+ }
612
+ } else if (triple.isWatchOS ()) {
613
+ if (triple.isOSVersionLT (2 , 0 )) {
614
+ diags.diagnose (SourceLoc (), diag::error_os_minimum_deployment,
615
+ " watchOS 2.0" );
616
+ return ;
617
+ }
618
+ }
619
619
}
620
620
621
621
void
0 commit comments