Skip to content

Commit 7ea6feb

Browse files
authored
Merge pull request #6676 from DougGregor/sil-generic-env-nobody
2 parents dad0526 + 961b8ae commit 7ea6feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Serialization/SerializeSIL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ void SILSerializer::writeSILFunction(const SILFunction &F, bool DeclOnly) {
350350

351351
// If we have a body, we might have a generic environment.
352352
GenericEnvironmentID genericEnvID = 0;
353-
if (!F.isExternalDeclaration())
353+
if (!NoBody)
354354
genericEnvID = S.addGenericEnvironmentRef(F.getGenericEnvironment());
355355

356356
DeclID clangNodeOwnerID;

0 commit comments

Comments
 (0)