Commit 665a4dcf authored by Matthias Braun's avatar Matthias Braun
Browse files

opt_inline: fix uninitialized memory usage

parent 27177e29
......@@ -1639,6 +1639,7 @@ static void inline_into(ir_graph *irg, unsigned maxsize,
set_irg_link(copy, callee_env);
assure_cf_loop(copy);
memset(&wenv, 0, sizeof(wenv));
wenv.x = callee_env;
wenv.ignore_callers = 1;
irg_walk_graph(copy, NULL, collect_calls2, &wenv);
......
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