Fix new Kotlin hacks

This commit is contained in:
Alexey Andreev 2021-03-12 19:51:58 +03:00
parent 40ecb0938d
commit 9a83bfe4e9

View File

@ -48,6 +48,10 @@ public class KotlinHacks implements ClassHolderTransformer {
&& method.getName().equals("renderLambdaToString") && method.getName().equals("renderLambdaToString")
&& method.getResultType().isObject(String.class)) { && method.getResultType().isObject(String.class)) {
Program program = new Program(); Program program = new Program();
program.createVariable();
for (int i = 0; i < method.parameterCount(); ++i) {
program.createVariable();
}
BasicBlock block = program.createBasicBlock(); BasicBlock block = program.createBasicBlock();
StringConstantInstruction stringConstant = new StringConstantInstruction(); StringConstantInstruction stringConstant = new StringConstantInstruction();