lib/SILGen/SILGenLValue.cpp
static void
addNonMemberVarDeclAddressorComponent(SILGenModule &SGM, VarDecl *var,
                                      CanType formalRValueType,
                                      LValue &lvalue) {
  assert(!lvalue.isValid());
  auto typeData = getPhysicalStorageTypeData(SGM, var, formalRValueType);
  SILType storageType = SGM.Types.getLoweredType(var->getType()).getAddressType();
  lvalue.add<AddressorComponent>(var, /*isSuper=*/ false, /*direct*/ true,
                                 SGM.getNonMemberVarDeclSubstitutions(var),
                                 CanType(), typeData, storageType);
}
// For now, we don't need either an AccessKind or an
// AccessSemantics, because addressors are always directly
// dispatched.
For now, we don't need either an AccessKind or an
AccessSemantics, because addressors are always directly
dispatched.
For now we don ' t need either an AccessKind or an AccessSemantics because addressors are always directly dispatched .
static void
addNonMemberVarDeclAddressorComponent(SILGenModule &SGM, VarDecl *var,
                                      CanType formalRValueType,
                                      LValue &lvalue) {
  assert(!lvalue.isValid());
  auto typeData = getPhysicalStorageTypeData(SGM, var, formalRValueType);
  SILType storageType = SGM.Types.getLoweredType(var->getType()).getAddressType();
  lvalue.add<AddressorComponent>(var,  false,  true,
                                 SGM.getNonMemberVarDeclSubstitutions(var),
                                 CanType(), typeData, storageType);
}
static void addNonMemberVarDeclAddressorComponent ( SILGenModule & SGM , VarDecl * var , CanType formalRValueType , LValue & lvalue ) { assert ( ! lvalue . isValid ( ) ) ; auto typeData = getPhysicalStorageTypeData ( SGM , var , formalRValueType ) ; SILType storageType = SGM . Types . getLoweredType ( var -> getType ( ) ) . getAddressType ( ) ; lvalue . add < AddressorComponent > ( var , false , true , SGM . getNonMemberVarDeclSubstitutions ( var ) , CanType ( ) , typeData , storageType ) ; }
For now, we don't need either an AccessKind or an
AccessSemantics, because addressors are always directly
dispatched.
For now we don ' t need either an AccessKind or an AccessSemantics because addressors are always directly dispatched .
/*isSuper=*/ /*direct*/