Fix issues with the AddressLowering pass

Override the current SILModuleConvention of the SILModule when we perform the address lowering.
This commit is contained in:
Roman Levenstein
2017-05-10 11:59:43 -07:00
parent 6402d3d97d
commit 946b1d4225
4 changed files with 21 additions and 10 deletions

View File

@@ -1300,6 +1300,7 @@ class ApplyInst : public ApplyInstBase<ApplyInst, SILInstruction> {
static ApplyInst *create(SILDebugLocation DebugLoc, SILValue Callee,
SubstitutionList Substitutions,
ArrayRef<SILValue> Args, bool isNonThrowing,
Optional<SILModuleConventions> ModuleConventions,
SILFunction &F,
SILOpenedArchetypesState &OpenedArchetypes);