Commit a3d61386 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Ensure that empty functions get their ret $0 by skipping iro_Start and beo_RegParams.

parent 6ef0d112
......@@ -327,8 +327,10 @@ static void peephole_ia32_Return(ir_node *node) {
case beo_Return:
/* the return node itself, ignore */
case iro_Start:
case beo_RegParams:
case beo_Barrier:
/* ignore the barrier, no code generated */
/* ignore no code generated */
case beo_IncSP:
/* arg, IncSP 0 nodes might occur, ignore these */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment