Commit 65261e15 authored by Manuel Mohr's avatar Manuel Mohr
Browse files

Prevent segfault with -bprofilegenerate=true for empty input files.

parent af7a569a
......@@ -557,7 +557,7 @@ static void be_main_loop(FILE *file_handle, const char *cup_name)
if (be_options.opt_profile_generate) {
if (num_birgs > 0 && be_options.opt_profile_generate) {
ir_graph *prof_init_irg
= ir_profile_instrument(prof_filename);
initialize_birg(&birgs[num_birgs], prof_init_irg, &env);
Supports Markdown
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