Skip to content

Commit

Permalink
Re-arranging the code such that ili is always initialized and used
Browse files Browse the repository at this point in the history
  • Loading branch information
dmikushin authored and bryanpkc committed Jun 28, 2023
1 parent bad6b06 commit f1ab81d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/flang2/flang2exe/expsmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2681,18 +2681,16 @@ exp_smp(ILM_OP opc, ILM *ilmp, int curilm)
#if defined(OMP_OFFLOAD_LLVM) || defined(OMP_OFFLOAD_PGI)
if(!flg.omptarget || IS_OMP_DEVICE_CG) break;
OMPACCEL_TINFO *targetinfo;
int ili;
wr_block();
cr_block();
if(opc == IM_ETARGETDATA) {
targetinfo = ompaccel_tinfo_current_get_targetdata();
ili = ll_make_tgt_target_data_end(OMPACCEL_DEFAULT_DEVICEID, targetinfo);
int ili = ll_make_tgt_target_data_end(OMPACCEL_DEFAULT_DEVICEID, targetinfo);
chk_block(ili);
}
iltb.callfg = 1;
chk_block(ili);
wr_block();
cr_block();
break;
#endif
break;
case IM_BDISTRIBUTE:
Expand Down

0 comments on commit f1ab81d

Please sign in to comment.