[midend-mem2reg]修改函数参数定义引入argument类,显示为参数创建alloca和store指令
This commit is contained in:
@@ -134,7 +134,7 @@ void SysYPrinter::printFunction(Function *function) {
|
||||
|
||||
auto entryBlock = function->getEntryBlock();
|
||||
const auto &args_types = function->getParamTypes();
|
||||
auto &args = entryBlock->getArguments();
|
||||
auto &args = function->getArguments();
|
||||
|
||||
int i = 0;
|
||||
for (const auto &args_type : args_types) {
|
||||
|
||||
Reference in New Issue
Block a user