Skip to content

Commit 132c85e

Browse files
committed
[Sema] Only warn on imports on non-resilient swiftinterfaces for lldb
1 parent f46d841 commit 132c85e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Sema/TypeCheckDeclPrimary.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,9 +1964,10 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
19641964
diag::import_not_compiled_with_library_evolution_but_rebuilt,
19651965
importTarget->getName());
19661966

1967-
static const char* acceptNonResilientInterfaes =
1967+
static const char* acceptNonResilientInterfaces =
19681968
::getenv("SWIFT_ACCEPT_NON_RESILIENT_INTERFACES");
1969-
if (acceptNonResilientInterfaes)
1969+
if (acceptNonResilientInterfaces ||
1970+
getASTContext().LangOpts.DebuggerSupport)
19701971
inFlight.limitBehavior(DiagnosticBehavior::Warning);
19711972
}
19721973
}

0 commit comments

Comments
 (0)