Skip to content

Commit b8c1e08

Browse files
author
Razor
committed
Updated the 8086 code generator to match the framework changes.
1 parent 7498611 commit b8c1e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codegens/8086CodeGen/src/CodeGen8086.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ void CodeGen8086::make_expression_part(std::shared_ptr<Branch> exp, std::string
487487
{
488488
// Move the address of the variable to the AX register
489489
std::shared_ptr<AddressOfBranch> address_of_branch = std::dynamic_pointer_cast<AddressOfBranch>(exp);
490-
std::shared_ptr<VarIdentifierBranch> var_branch = std::dynamic_pointer_cast<VarIdentifierBranch>(address_of_branch->getVariableBranch());
490+
std::shared_ptr<VarIdentifierBranch> var_branch = std::dynamic_pointer_cast<VarIdentifierBranch>(address_of_branch->getVariableIdentifierBranch());
491491
make_move_var_addr_to_reg(s_info, register_to_store, var_branch);
492492
}
493493
else if (exp->getType() == "ASSIGN")

0 commit comments

Comments
 (0)