[NFC] Correct argument comment typo
authorGregory Alfonso <gfunni234@gmail.com>
Tue, 31 Jan 2023 00:06:45 +0000 (16:06 -0800)
committerFangrui Song <i@maskray.me>
Tue, 31 Jan 2023 00:06:45 +0000 (16:06 -0800)
For Darwin, the boolean being passed is called IsSimulator, not "IsImulator"

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D139547

clang/lib/Driver/ToolChains/Darwin.cpp

index 9f95c96..00bd12f 100644 (file)
@@ -1772,7 +1772,7 @@ getDeploymentTargetFromOSVersionArg(DerivedArgList &Args,
                  ->getAsString(Args);
     }
     return DarwinPlatform::createOSVersionArg(Darwin::MacOS, macOSVersion,
-                                              /*IsImulator=*/false);
+                                              /*IsSimulator=*/false);
   } else if (iOSVersion) {
     if (TvOSVersion || WatchOSVersion) {
       TheDriver.Diag(diag::err_drv_argument_not_allowed_with)