mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Remove ModuleDecl parameter from more places
This commit is contained in:
@@ -519,7 +519,7 @@ static SILValue emitCodeForConstantArray(ArrayRef<SILValue> elements,
|
||||
// created array and the second element is a pointer to the internal storage
|
||||
// of the array.
|
||||
SubstitutionMap subMap = arrayType->getContextSubstitutionMap(
|
||||
module.getSwiftModule(), astContext.getArrayDecl());
|
||||
astContext.getArrayDecl());
|
||||
FunctionRefInst *arrayAllocateRef =
|
||||
builder.createFunctionRef(loc, arrayAllocateFun);
|
||||
ApplyInst *applyInst = builder.createApply(
|
||||
@@ -683,8 +683,7 @@ static SILValue emitCodeForSymbolicValue(SymbolicValue symVal,
|
||||
"aggregate symbolic value's type and expected type do not match");
|
||||
|
||||
VarDecl *propertyDecl = structDecl->getStoredProperties().front();
|
||||
Type propertyType = expectedType->getTypeOfMember(
|
||||
propertyDecl->getModuleContext(), propertyDecl);
|
||||
Type propertyType = expectedType->getTypeOfMember(propertyDecl);
|
||||
SymbolicValue propertyVal = symVal.lookThroughSingleElementAggregates();
|
||||
SILValue newPropertySIL = emitCodeForSymbolicValue(
|
||||
propertyVal, propertyType, builder, loc, stringInfo);
|
||||
|
||||
Reference in New Issue
Block a user