better assertion in ExpressionCodegen
This commit is contained in:
@@ -2265,7 +2265,9 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> {
|
|||||||
VariableDescriptor variableDescriptor = bindingContext.get(BindingContext.VARIABLE, property);
|
VariableDescriptor variableDescriptor = bindingContext.get(BindingContext.VARIABLE, property);
|
||||||
int index = lookupLocal(variableDescriptor);
|
int index = lookupLocal(variableDescriptor);
|
||||||
|
|
||||||
assert index >= 0;
|
if (index < 0) {
|
||||||
|
throw new IllegalStateException("Local variable not found for " + variableDescriptor);
|
||||||
|
}
|
||||||
|
|
||||||
final Type sharedVarType = typeMapper.getSharedVarType(variableDescriptor);
|
final Type sharedVarType = typeMapper.getSharedVarType(variableDescriptor);
|
||||||
assert variableDescriptor != null;
|
assert variableDescriptor != null;
|
||||||
|
|||||||
Reference in New Issue
Block a user