Skip to content

Commit

Permalink
Return the line as it was
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrahmanKhaledd committed Sep 28, 2024
1 parent cfa54f8 commit fb280ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/CodeGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ namespace Theta {
return generateAssignment(dynamic_pointer_cast<AssignmentNode>(node), module);
} else if (node->getNodeType() == ASTNode::BLOCK) {
return generateBlock(dynamic_pointer_cast<ASTNodeList>(node), module);
} else if (node->getNodeType() == Theta::ASTNode::RETURN) {
} else if (node->getNodeType() == ASTNode::RETURN) {
return generateReturn(dynamic_pointer_cast<ReturnNode>(node), module);
} else if (node->getNodeType() == ASTNode::FUNCTION_DECLARATION) {
// The only time we should get here is if we have a function defined inside a function,
Expand Down

0 comments on commit fb280ba

Please sign in to comment.