Skip to content

Commit 5f3f1a3

Browse files
committed
Revert "[Serialization] Fix a bug in the serialization of shared functions."
This reverts commit 422d466. Jordan said that this change is incorrect. I am reverting the patch and plan to investigate why we are deserializing shared_external functions with no body.
1 parent 97a793b commit 5f3f1a3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/Serialization/SerializeSIL.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,6 @@ void SILSerializer::writeSILFunction(const SILFunction &F, bool DeclOnly) {
263263
// as available externally.
264264
if (NoBody) {
265265
Linkage = addExternalToLinkage(Linkage);
266-
267-
// We do not allow external declarations with shared visibility.
268-
if (hasSharedVisibility(Linkage))
269-
Linkage = SILLinkage::PublicExternal;
270266
}
271267

272268
SILFunctionLayout::emitRecord(

0 commit comments

Comments
 (0)