Add implicit ret void after main in bitcode.

This commit is contained in:
Stefano Sanfilippo 2015-03-07 19:44:49 +01:00
parent 354654daec
commit 35d3dbce75

View File

@ -590,6 +590,7 @@ bool BitcodeEmitter::emit(Program const& program) {
if (program.getMain()) {
GUARDED(program.getMain()->emit(this));
d->builder.CreateRetVoid();
}
return true;