Add implicit ret void after main in bitcode.
This commit is contained in:
parent
354654daec
commit
35d3dbce75
|
@ -590,6 +590,7 @@ bool BitcodeEmitter::emit(Program const& program) {
|
||||||
|
|
||||||
if (program.getMain()) {
|
if (program.getMain()) {
|
||||||
GUARDED(program.getMain()->emit(this));
|
GUARDED(program.getMain()->emit(this));
|
||||||
|
d->builder.CreateRetVoid();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Reference in New Issue
Block a user