mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: ArchetypeMethodInst doesn't need a value operand.
Archetype methods can be looked up from the local witness tables for the archetype independent of an object. Swift SVN r5152
This commit is contained in:
@@ -336,11 +336,12 @@ public:
|
||||
return insert(new SuperMethodInst(Loc, Operand, Member, MethodTy));
|
||||
}
|
||||
|
||||
ArchetypeMethodInst *createArchetypeMethod(SILLocation Loc, SILValue Operand,
|
||||
ArchetypeMethodInst *createArchetypeMethod(SILLocation Loc,
|
||||
SILType LookupTy,
|
||||
SILConstant Member,
|
||||
SILType MethodTy)
|
||||
{
|
||||
return insert(new ArchetypeMethodInst(Loc, Operand, Member, MethodTy));
|
||||
return insert(new ArchetypeMethodInst(Loc, LookupTy, Member, MethodTy));
|
||||
}
|
||||
|
||||
ProtocolMethodInst *createProtocolMethod(SILLocation Loc,
|
||||
|
||||
Reference in New Issue
Block a user