fix(ir): 规范ir实现

This commit is contained in:
jing
2026-03-11 00:38:05 +08:00
parent c72ffa6e39
commit 8f448df4bc
8 changed files with 132 additions and 22 deletions

View File

@@ -6,10 +6,6 @@
#include "ir/IR.h"
bool IRGenImpl::GenStmt(SysYParser::StmtContext& stmt) {
if (stmt.varDecl()) {
GenVarDecl(*stmt.varDecl());
return false;
}
if (stmt.returnStmt()) {
GenReturnStmt(*stmt.returnStmt());
return true;