Revert "[FIR2IR] Temporary fix of createIrEnumEntry"

This reverts commit c9a8f433fb.

KT-54079
This commit is contained in:
Kirill Rakhman
2023-01-31 10:02:41 +01:00
committed by Space Team
parent 79f6d4b590
commit feb6fd0e0d
2 changed files with 0 additions and 9 deletions
@@ -535,11 +535,6 @@ class Fir2IrClassifierStorage(
): IrEnumEntry {
return enumEntry.convertWithOffsets { startOffset, endOffset ->
val signature = signatureComposer.composeSignature(enumEntry, forceTopLevelPrivate = forceTopLevelPrivate)
if (signature != null) {
// Compilation of kotlinx-serialization-protobuf fails with "already bound" exception if this check is removed
// TODO: get rid of this check
symbolTable.referenceEnumEntryIfAny(signature)?.let { if (it.isBound) return@convertWithOffsets it.owner }
}
val result = declareIrEnumEntry(signature) { symbol ->
val origin = enumEntry.computeIrOrigin(predefinedOrigin)
irFactory.createEnumEntry(