Skip to content

Commit

Permalink
rdar://102723507 (bug: (fdb-record-layer) add support for enum in dee…
Browse files Browse the repository at this point in the history
…pCopyIfNeeded() in RecordConstructorValue)
  • Loading branch information
g31pranjal committed Nov 28, 2022
1 parent 238a4f2 commit af066ff
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -161,7 +161,7 @@ private Object deepCopyIfNeeded(@Nonnull TypeRepository typeRepository,
return null;
}

if (fieldType.isPrimitive()) {
if (fieldType.isPrimitive() || fieldType instanceof Type.Enum) {
return field;
}

Expand Down

0 comments on commit af066ff

Please sign in to comment.