Skip to content

Commit 6da6a7b

Browse files
authored
Remove OptimizeArgs = true on the ClangDependencyScanningService init (#70145)
* Remove 'OptimizeArgs = true' on the ClangDependencyScanningService init With the new API this is no longer a boolean and the new default value of 'ScanningOptimizations::Default' matches the behavior we had prior to this change.
1 parent e48c438 commit 6da6a7b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/AST/ModuleDependencies.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,7 @@ SwiftDependencyScanningService::SwiftDependencyScanningService() {
409409
clang::CASOptions(),
410410
/* CAS (llvm::cas::ObjectStore) */ nullptr,
411411
/* Cache (llvm::cas::ActionCache) */ nullptr,
412-
/* SharedFS */ nullptr,
413-
/* OptimizeArgs */ true);
412+
/* SharedFS */ nullptr);
414413
SharedFilesystemCache.emplace();
415414
}
416415

@@ -568,8 +567,7 @@ bool SwiftDependencyScanningService::setupCachingDependencyScanningService(
568567
ClangScanningFormat,
569568
Instance.getInvocation().getFrontendOptions().CASOpts,
570569
Instance.getSharedCASInstance(), Instance.getSharedCacheInstance(),
571-
UseClangIncludeTree ? nullptr : CacheFS,
572-
/* ReuseFileManager */ false, /* OptimizeArgs */ false);
570+
UseClangIncludeTree ? nullptr : CacheFS);
573571

574572
return false;
575573
}

0 commit comments

Comments
 (0)