[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:
committed by
Alexander Udalov
parent
87f17dec4a
commit
33ab2299f9
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user