Skip to content

Commit

Permalink
fix compiler build
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Dec 1, 2024
1 parent 22544e7 commit 66b5666
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.jetbrains.kotlin.ir.builders.declarations.addConstructor
import org.jetbrains.kotlin.ir.declarations.*
import org.jetbrains.kotlin.ir.expressions.impl.IrDelegatingConstructorCallImpl
import org.jetbrains.kotlin.ir.expressions.impl.IrInstanceInitializerCallImpl
import org.jetbrains.kotlin.ir.expressions.impl.fromSymbolOwner
import org.jetbrains.kotlin.ir.symbols.IrConstructorSymbol
import org.jetbrains.kotlin.ir.symbols.UnsafeDuringIrConstructionAPI
import org.jetbrains.kotlin.ir.symbols.impl.IrValueParameterSymbolImpl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class DeobfuscatorTransformer(
private val pluginContext: IrPluginContext
) : IrElementTransformerVoidWithContext() {

override fun visitConst(expression: IrConst<*>): IrExpression {
override fun visitConst(expression: IrConst): IrExpression {
val getMethod = DeobfuscatorGenerator.getFunction
if (getMethod != null) {
if (expression.kind == IrConstKind.String || expression.type.isAnyString()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class ToStringTransformer(
@OptIn(UnsafeDuringIrConstructionAPI::class)
private fun isNull(expression: IrExpression): Boolean {
return when (expression) {
is IrConst<*> -> {
is IrConst -> {
expression.kind == IrConstKind.Null || expression.value == null
}
is IrSetField -> {
Expand Down

0 comments on commit 66b5666

Please sign in to comment.