compiler/resolution/lowerIterators.cpp
//
// reconstruct autoCopy and autoDestroy for iterator records
//
reconstruct autoCopy and autoDestroy for iterator records
reconstruct autoCopy and autoDestroy for iterator records
forv_Vec(FnSymbol, fn, gFnSymbols) {
    if (!fn->inTree()) continue;
    if (fn->numFormals() == 1 &&
        fn->getFormal(1)->type->symbol->hasFlag(FLAG_ITERATOR_RECORD))
    {
      SET_LINENO(fn);
      if (fn->hasFlag(FLAG_AUTO_COPY_FN))
        reconstructIRAutoCopy(fn);
      if (fn->hasFlag(FLAG_AUTO_DESTROY_FN))
        reconstructIRAutoDestroy(fn);
    }
  }
forv_Vec ( FnSymbol , fn , gFnSymbols ) { if ( ! fn -> inTree ( ) ) continue ; if ( fn -> numFormals ( ) == 1 && fn -> getFormal ( 1 ) -> type -> symbol -> hasFlag ( FLAG_ITERATOR_RECORD ) ) { SET_LINENO ( fn ) ; if ( fn -> hasFlag ( FLAG_AUTO_COPY_FN ) ) reconstructIRAutoCopy ( fn ) ; if ( fn -> hasFlag ( FLAG_AUTO_DESTROY_FN ) ) reconstructIRAutoDestroy ( fn ) ; } }
reconstruct autoCopy and autoDestroy for iterator records
reconstruct autoCopy and autoDestroy for iterator records