[IR] Fix the type of the default argument mask condition.

On JVM and JS we can get away with using an Int but it really
should be a Boolean and Native reasonably insists on that.
This commit is contained in:
Mads Ager
2020-09-10 16:00:46 +02:00
committed by Alexander Udalov
parent 87f17dec4a
commit 33ab2299f9
@@ -193,7 +193,7 @@ open class DefaultArgumentStubGenerator(
//
// This control flow limits us to an if-then (without an else), and this together with the
// restriction on loading the parameter in the default case means we cannot create any temporaries.
+irIfThen(defaultFlag, irSet(parameter.symbol, default))
+irIfThen(irNotEquals(defaultFlag, irInt(0)), irSet(parameter.symbol, default))
return parameter
}