Skip to content

Commit 5de4a26

Browse files
Pass complex arg as pointer to pair of floats
1 parent a073813 commit 5de4a26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/flang2/flang2exe/outliner.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2687,7 +2687,8 @@ ll_make_helper_function_for_kmpc_parallel_51(SPTR scope_sptr, OMPACCEL_TINFO *or
26872687
func_args[1] = get_type(2, TY_PTR, DT_INT8);//DT_CPTR; // bound_tid
26882688

26892689
for (int k = 2; k < func_args_cnt; k++) {
2690-
if(DT_ISSCALAR( DTYPEG(symbols->device_sym)))
2690+
if(DT_ISSCALAR( DTYPEG(symbols->device_sym))
2691+
&& DTYPEG(symbols->device_sym) != DT_CMPLX)
26912692
func_args[k] = DT_CPTR;
26922693
else
26932694
func_args[k] = DTYPEG(symbols->device_sym);

0 commit comments

Comments
 (0)