Skip to content

Commit 734e9b8

Browse files
committed
[IRGen] Make enum metadata non-const for instantiated layout strings
1 parent 7e3f56d commit 734e9b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/IRGen/GenMeta.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5675,7 +5675,7 @@ namespace {
56755675

56765676
llvm::Constant *emitNominalTypeDescriptor() {
56775677
auto descriptor = EnumContextDescriptorBuilder(
5678-
IGM, Target, RequireMetadata, !!getLayoutString())
5678+
IGM, Target, RequireMetadata, hasLayoutString())
56795679
.emit();
56805680
return descriptor;
56815681
}
@@ -5724,7 +5724,7 @@ namespace {
57245724
}
57255725

57265726
bool canBeConstant() {
5727-
return !HasUnfilledPayloadSize;// && !hasInstantiatedLayoutString();
5727+
return !HasUnfilledPayloadSize && !hasInstantiatedLayoutString();
57285728
}
57295729
};
57305730

0 commit comments

Comments
 (0)