Skip to content

Commit

Permalink
Revert "[Serialization] Fix a bug in the serialization of shared func…
Browse files Browse the repository at this point in the history
…tions."

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.
  • Loading branch information
nadavrot committed Nov 29, 2015
1 parent 97a793b commit 5f3f1a3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Serialization/SerializeSIL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,6 @@ void SILSerializer::writeSILFunction(const SILFunction &F, bool DeclOnly) {
// as available externally.
if (NoBody) {
Linkage = addExternalToLinkage(Linkage);

// We do not allow external declarations with shared visibility.
if (hasSharedVisibility(Linkage))
Linkage = SILLinkage::PublicExternal;
}

SILFunctionLayout::emitRecord(
Expand Down

0 comments on commit 5f3f1a3

Please sign in to comment.