mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Include conformances in InitExistentialInst.
IRGen needs the conformances to be able to initialize an existential container. Swift SVN r3786
This commit is contained in:
@@ -250,13 +250,18 @@ public:
|
||||
}
|
||||
|
||||
InitExistentialInst *createInitExistential(SILLocation Loc,
|
||||
Value Existential,
|
||||
SILType ConcreteType) {
|
||||
return insert(new InitExistentialInst(Loc, Existential, ConcreteType, F));
|
||||
Value Existential,
|
||||
SILType ConcreteType,
|
||||
ArrayRef<ProtocolConformance*> Conformances) {
|
||||
return insert(new InitExistentialInst(Loc,
|
||||
Existential,
|
||||
ConcreteType,
|
||||
Conformances,
|
||||
F));
|
||||
}
|
||||
|
||||
DeinitExistentialInst *createDeinitExistential(SILLocation Loc,
|
||||
Value Existential) {
|
||||
Value Existential) {
|
||||
return insert(new DeinitExistentialInst(Loc, Existential));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user