Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

UserDefinedTypeDescriptor: fix type for enum vars. #5550

Merged
merged 1 commit into from
Apr 16, 2018

Conversation

kbaladurin
Copy link
Member

We didn't use enum type index for enum vars. This patch fixes it.

@@ -180,6 +180,10 @@ private uint GetVariableTypeIndex(TypeDesc type, bool needsCompleteIndex)
variableTypeIndex = GetEnumTypeIndex(type);

GetTypeIndex(type, false); // Ensure regular structure record created
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why should we create record for enum structure? Seems like we doesn't use it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidwrighton This came with #3932 . Could you please take a look?

@kbaladurin
Copy link
Member Author

@kbaladurin
Copy link
Member Author

@jkotas PTAL

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants