Move TypeAndValue to Ast from Map

This commit is contained in:
gingerBill
2018-06-17 16:35:22 +01:00
parent 5b71ffd4f9
commit 4d9d38cc28
7 changed files with 134 additions and 135 deletions

View File

@@ -1386,7 +1386,7 @@ bool check_is_not_addressable(CheckerContext *c, Operand *o) {
return true;
}
ast_node(ta, TypeAssertion, expr);
TypeAndValue tv = type_and_value_of_expr(&c->checker->info, ta->expr);
TypeAndValue tv = ta->expr->tav;
if (is_type_pointer(tv.type)) {
return false;
}