Add ret void to every function, to make sure one exists
This commit is contained in:
parent
01d4999e14
commit
d3a4964f10
@ -252,6 +252,8 @@ namespace AST {
|
||||
}
|
||||
}
|
||||
|
||||
builder.builder->CreateRetVoid();
|
||||
|
||||
llvm::verifyFunction(*function);
|
||||
|
||||
builder.block = nullptr;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user