Commits
Michael Gottesman committed afa464f980c
[deserialization] Do not allow SILModule to attempt to deserialize a witness table lazily while we are already deserializing. When deserializing, the serialized sil loader attempts to first lookup from its SILModule the witness table to attempt to grab a witness table declaration. Before this patch if the SILModule could not find it, it would attempt to deserialize it. In certain edge cases this would cause us to attempt to deserialize a function definition which violates the invariant that that should never happen. This patch adds an argument to SILModule::lookUpWitnessTable that enables you to turn off the lazy deserialization behavior. The default argument gives the current behavior which should be used everywhere except for the deserializer. Swift SVN r16740