Skip to content

Commit 5123083

Browse files
committed
Load plugin libraries when type checking swiftinterface
1 parent 225fb4e commit 5123083

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Frontend/ModuleInterfaceLoader.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,6 +1784,11 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
17841784
StringRef explicitSwiftModuleMap = searchPathOpts.ExplicitSwiftModuleMap;
17851785
genericSubInvocation.getSearchPathOptions().ExplicitSwiftModuleMap =
17861786
explicitSwiftModuleMap.str();
1787+
1788+
// Load plugin libraries for macro expression as default arguments
1789+
genericSubInvocation.getSearchPathOptions().PluginSearchOpts =
1790+
searchPathOpts.PluginSearchOpts;
1791+
17871792
auto &subClangImporterOpts = genericSubInvocation.getClangImporterOptions();
17881793
// Respect the detailed-record preprocessor setting of the parent context.
17891794
// This, and the "raw" clang module format it implicitly enables, are

0 commit comments

Comments
 (0)