diff --git a/tools/swift-refactor/swift-refactor.cpp b/tools/swift-refactor/swift-refactor.cpp index f6838f7e555a0..f86930e4220ba 100644 --- a/tools/swift-refactor/swift-refactor.cpp +++ b/tools/swift-refactor/swift-refactor.cpp @@ -294,6 +294,7 @@ int main(int argc, char *argv[]) { Invocation.getLangOptions().AttachCommentsToDecls = true; Invocation.getLangOptions().CollectParsedToken = true; Invocation.getLangOptions().BuildSyntaxTree = true; + Invocation.getLangOptions().DisableAvailabilityChecking = true; if (options::EnableExperimentalConcurrency) Invocation.getLangOptions().EnableExperimentalConcurrency = true;