Skip to content

Commit 8b3252b

Browse files
committed
[cxx-interop] Fix SIL deserialization error
1 parent 14cc176 commit 8b3252b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9519,6 +9519,12 @@ Decl *ClangImporter::Implementation::importDeclAndCacheImpl(
95199519
if (!SuperfluousTypedefsAreTransparent && TypedefIsSuperfluous)
95209520
return nullptr;
95219521

9522+
if (ClangDecl->getDeclContext()->isNamespace()) {
9523+
addEntryToLookupTable(*BridgingHeaderLookupTable,
9524+
const_cast<clang::NamedDecl *>(ClangDecl),
9525+
getNameImporter());
9526+
}
9527+
95229528
return Result;
95239529
}
95249530

lib/Serialization/Deserialization.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5141,6 +5141,7 @@ getActualSILFunctionTypeRepresentation(uint8_t rep) {
51415141
CASE(Method)
51425142
CASE(ObjCMethod)
51435143
CASE(WitnessMethod)
5144+
CASE(CXXMethod)
51445145
#undef CASE
51455146
default:
51465147
return None;

0 commit comments

Comments
 (0)