Add ret void to every function, to make sure one exists

This commit is contained in:
Sofia 2026-04-14 00:26:37 +03:00
parent 01d4999e14
commit d3a4964f10

View File

@ -252,6 +252,8 @@ namespace AST {
} }
} }
builder.builder->CreateRetVoid();
llvm::verifyFunction(*function); llvm::verifyFunction(*function);
builder.block = nullptr; builder.block = nullptr;