From: Christoph Mallon Date: Sat, 4 Oct 2008 12:26:31 +0000 (+0000) Subject: Ensure that empty functions get their ret $0 by skipping iro_Start and beo_RegParams. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a3d6138678ba48371a6f1683a3cbbcca81e5b167;p=libfirm Ensure that empty functions get their ret $0 by skipping iro_Start and beo_RegParams. [r22465] --- diff --git a/ir/be/ia32/ia32_optimize.c b/ir/be/ia32/ia32_optimize.c index 719c158d5..960cf27aa 100644 --- a/ir/be/ia32/ia32_optimize.c +++ b/ir/be/ia32/ia32_optimize.c @@ -327,8 +327,10 @@ static void peephole_ia32_Return(ir_node *node) { case beo_Return: /* the return node itself, ignore */ continue; + case iro_Start: + case beo_RegParams: case beo_Barrier: - /* ignore the barrier, no code generated */ + /* ignore no code generated */ continue; case beo_IncSP: /* arg, IncSP 0 nodes might occur, ignore these */