codegen: avoid a table lookup

This commit is contained in:
Andrew Kelley
2016-02-01 20:05:50 -07:00
parent 0b94c83deb
commit 74eaf43768
2 changed files with 2 additions and 2 deletions

View File

@@ -889,8 +889,7 @@ static LLVMValueRef gen_lvalue(CodeGen *g, AstNode *expr_node, AstNode *node,
LLVMValueRef target_ref;
if (node->type == NodeTypeSymbol) {
VariableTableEntry *var = find_variable(expr_node->block_context,
&node->data.symbol_expr.symbol);
VariableTableEntry *var = node->data.symbol_expr.variable;
assert(var);
*out_type_entry = var->type;