Skip to content

Commit

Permalink
Updated the 8086 code generator to match the framework changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Razor committed Apr 7, 2017
1 parent 7498611 commit b8c1e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegens/8086CodeGen/src/CodeGen8086.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ void CodeGen8086::make_expression_part(std::shared_ptr<Branch> exp, std::string
{
// Move the address of the variable to the AX register
std::shared_ptr<AddressOfBranch> address_of_branch = std::dynamic_pointer_cast<AddressOfBranch>(exp);
std::shared_ptr<VarIdentifierBranch> var_branch = std::dynamic_pointer_cast<VarIdentifierBranch>(address_of_branch->getVariableBranch());
std::shared_ptr<VarIdentifierBranch> var_branch = std::dynamic_pointer_cast<VarIdentifierBranch>(address_of_branch->getVariableIdentifierBranch());
make_move_var_addr_to_reg(s_info, register_to_store, var_branch);
}
else if (exp->getType() == "ASSIGN")
Expand Down

0 comments on commit b8c1e08

Please sign in to comment.