From 35d3dbce75707c4fe309dc266972b3af0a4b6335 Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Sat, 7 Mar 2015 19:44:49 +0100 Subject: [PATCH] Add implicit ret void after main in bitcode. --- BitcodeEmitter.cpp | 1 + 1 file changed, 1 insertion(+) 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;