Fix compiler warnings in new wasm modules
Also don't output v8ExecutablePath in js.tests on each project configuration.
This commit is contained in:
committed by
Alexander Udalov
parent
84d1393711
commit
d96223a2ff
+2
-1
@@ -90,6 +90,7 @@ class CheckIrElementVisitor(
|
||||
override fun <T> visitConst(expression: IrConst<T>) {
|
||||
super.visitConst(expression)
|
||||
|
||||
@Suppress("UNUSED_VARIABLE")
|
||||
val naturalType = when (expression.kind) {
|
||||
IrConstKind.Null -> {
|
||||
expression.ensureNullable()
|
||||
@@ -106,9 +107,9 @@ class CheckIrElementVisitor(
|
||||
IrConstKind.Double -> irBuiltIns.doubleType
|
||||
}
|
||||
|
||||
var type = expression.type
|
||||
/*
|
||||
TODO: This check used to have JS inline class helpers. Rewrite it in a common way.
|
||||
var type = expression.type
|
||||
while (true) {
|
||||
val inlinedClass = type.getInlinedClass() ?: break
|
||||
if (getInlineClassUnderlyingType(inlinedClass) == type)
|
||||
|
||||
+2
-3
@@ -272,10 +272,9 @@ class InlineClassLowering(val context: CommonBackendContext) {
|
||||
}
|
||||
|
||||
private fun IrFunction.toInlineClassImplementationName(): Name {
|
||||
val klass = this.parentAsClass!!
|
||||
val newName = klass.name.asString() + "__" + name.asString() + INLINE_CLASS_IMPL_SUFFIX
|
||||
val newName = parentAsClass.name.asString() + "__" + name.asString() + INLINE_CLASS_IMPL_SUFFIX
|
||||
return when {
|
||||
name.isSpecial -> Name.special("<" + newName + ">")
|
||||
name.isSpecial -> Name.special("<$newName>")
|
||||
else -> Name.identifier(newName)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user