Commit 51139319 authored by Yang's avatar Yang

fix a bug

parent a6a29544
...@@ -295,7 +295,7 @@ void CodeGen::gen_prologue() ...@@ -295,7 +295,7 @@ void CodeGen::gen_prologue()
{ {
if (func->is_declaration()) continue; if (func->is_declaration()) continue;
for (auto& bb : context.func->get_basic_blocks()) for (auto& bb : func->get_basic_blocks())
{ {
for (auto& instr : bb->get_instructions()) for (auto& instr : bb->get_instructions())
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment