Fixed compilation of functions that does not have return statement but contain inline asm

This commit is contained in:
Alexey Prokhin
2011-07-19 22:22:49 +04:00
parent 06baaacdc0
commit 79edefdc37
3 changed files with 5 additions and 7 deletions

View File

@@ -689,7 +689,7 @@ void DtoDefineFunction(FuncDeclaration* fd)
// this hack makes sure the frame pointer elimination optimization is disabled.
// this this eliminates a bunch of inline asm related issues.
if (fd->inlineAsm)
if (fd->hasReturnExp & 8) // has inline asm
{
// emit a call to llvm_eh_unwind_init
LLFunction* hack = GET_INTRINSIC_DECL(eh_unwind_init);