Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sbogolepov committed Dec 3, 2020
1 parent 5135341 commit f9a15fc
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ internal class CEnumClassGenerator(
createEnumEntry(descriptor, entryDescriptor)
}
enumClassMembersGenerator.generateSpecialMembers(enumIrClass)
enumIrClass.addChild(cEnumCompanionGenerator.
generate(enumIrClass))
enumIrClass.addChild(cEnumCompanionGenerator.generate(enumIrClass))
enumIrClass.addChild(cEnumVarClassGenerator.generate(enumIrClass))
}

Expand Down Expand Up @@ -132,7 +131,7 @@ internal class CEnumClassGenerator(
SYNTHETIC_OFFSET, SYNTHETIC_OFFSET,
type = irBuiltIns.unitType,
symbol = constructorSymbol,
typeArgumentsCount = constructorSymbol.owner.typeParameters.size,
typeArgumentsCount = 0,
valueArgumentsCount = constructorSymbol.owner.valueParameters.size
).also {
it.putValueArgument(0, extractEnumEntryValue(entryDescriptor))
Expand Down

0 comments on commit f9a15fc

Please sign in to comment.