Skip to content

Commit

Permalink
Fixes #1566 toIrConst moved under common IrUtils in Kotlin 1.9.20
Browse files Browse the repository at this point in the history
  • Loading branch information
nhachicha committed Nov 13, 2023
1 parent be75e66 commit 091ec98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* None.

### Fixed
* None.
* Fix compiler crash caused by a change in Kotlin 1.9.20 ((toIrConst moved under common IrUtils)[https://github.com/JetBrains/kotlin/commit/ca8db7d0b83f6dfd6afcea7a5fe7556d38f325d8]). (Issue [#1566](https://github.com/realm/realm-kotlin/issues/1566))

### Compatibility
* File format: Generates Realms with file format v23.
Expand Down Expand Up @@ -36,7 +36,7 @@
* None.

### Fixed
* Fix craches caused by posting to a released scheduler. (Issue [#1543](https://github.com/realm/realm-kotlin/issues/1543))
* Fix crashes caused by posting to a released scheduler. (Issue [#1543](https://github.com/realm/realm-kotlin/issues/1543))

### Compatibility
* File format: Generates Realms with file format v23.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import org.jetbrains.kotlin.ir.declarations.IrSimpleFunction
import org.jetbrains.kotlin.ir.expressions.IrCall
import org.jetbrains.kotlin.ir.expressions.IrExpression
import org.jetbrains.kotlin.ir.expressions.impl.IrCallImpl
import org.jetbrains.kotlin.ir.expressions.impl.IrConstImpl
import org.jetbrains.kotlin.ir.expressions.impl.IrGetObjectValueImpl
import org.jetbrains.kotlin.ir.interpreter.toIrConstOrNull
import org.jetbrains.kotlin.ir.symbols.IrSimpleFunctionSymbol
import org.jetbrains.kotlin.ir.types.impl.IrSimpleTypeImpl
import org.jetbrains.kotlin.ir.util.companionObject
Expand Down Expand Up @@ -147,10 +147,11 @@ private class SyncLowering(private val pluginContext: IrPluginContext, private v
}
putValueArgument(
expression.valueArgumentsCount,
bundleId.toIrConstOrNull(
IrConstImpl.string(
startOffset,
endOffset,
pluginContext.irBuiltIns.stringType,
expression.startOffset,
expression.endOffset,
bundleId
)
)
}
Expand Down

0 comments on commit 091ec98

Please sign in to comment.