Commit fa526598 authored by Matthias Braun's avatar Matthias Braun
Browse files

inline: we can't inline blocks with entities

parent 910e0442
......@@ -145,7 +145,13 @@ static void find_addr(ir_node *node, void *env)
{
bool *allow_inline = (bool*)env;
if (is_Sel(node)) {
if (is_Block(node) && get_Block_entity(node)) {
/**
* Currently we can't handle blocks whose address was taken correctly
* when inlining
*/
*allow_inline = false;
} else if (is_Sel(node)) {
ir_graph *irg = current_ir_graph;
if (get_Sel_ptr(node) == get_irg_frame(irg)) {
/* access to frame */
......
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