Do not generate CHECKCAST after 'null' literal

#KT-15411 Fixed
This commit is contained in:
Alexander Udalov
2016-12-23 14:41:32 +03:00
parent 4c9bac084c
commit 3d9c264d63
3 changed files with 33 additions and 1 deletions
@@ -810,7 +810,9 @@ public abstract class StackValue {
v.aconst(value);
}
coerceTo(type, v);
if (value != null || AsmUtil.isPrimitive(type)) {
coerceTo(type, v);
}
}
}