diff --git a/BitcodeEmitter.cpp b/BitcodeEmitter.cpp index 80f798c..c0a9188 100644 --- a/BitcodeEmitter.cpp +++ b/BitcodeEmitter.cpp @@ -590,6 +590,7 @@ bool BitcodeEmitter::emit(Program const& program) { if (program.getMain()) { GUARDED(program.getMain()->emit(this)); + d->builder.CreateRetVoid(); } return true;