Skip to content

Commit dae55da

Browse files
committed
426805: Fix regression in test_target_defaultmap.F90
1 parent 3913614 commit dae55da

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/flang2/flang2exe/llutil.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,11 +1877,17 @@ use_gpu_output_file(void)
18771877
set_llasm_output_file(gbl.ompaccfile);
18781878
}
18791879
void reset_write_ftn_typedefs(void);
1880+
1881+
static bool first_time = true;
1882+
18801883
void
18811884
use_cpu_output_file(void)
18821885
{
18831886
set_llasm_output_file(gbl.asmfil);
1884-
reset_write_ftn_typedefs();
1887+
if (first_time) {
1888+
reset_write_ftn_typedefs();
1889+
first_time = false;
1890+
}
18851891
}
18861892
#endif
18871893
/**

0 commit comments

Comments
 (0)