Commit cc6d7a2e authored by Julian Oppermann's avatar Julian Oppermann

Fail gracefully.

parent 24a4b457
......@@ -932,6 +932,7 @@ void vb_build(ir_graph *irg)
/* Get the return node for construction. */
end = get_irg_end_block(irg);
assert(get_Block_n_cfgpreds(end) > 0 && "Invalid VFirm graph.");
ret = get_Block_cfgpred(end, 0);
assert(is_Return(ret) && "Invalid VFirm graph.");
......
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