fix(ir): 规范ir实现
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user