mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Add SILFunction::mapTypeOutOfContext(), NFC
This commit is contained in:
@@ -272,6 +272,12 @@ SILType ArchetypeBuilder::substDependentType(SILModule &M, SILType type) {
|
||||
type);
|
||||
}
|
||||
|
||||
Type SILFunction::mapTypeOutOfContext(Type type) const {
|
||||
return ArchetypeBuilder::mapTypeOutOfContext(getModule().getSwiftModule(),
|
||||
getContextGenericParams(),
|
||||
type);
|
||||
}
|
||||
|
||||
SILBasicBlock *SILFunction::createBasicBlock() {
|
||||
return new (getModule()) SILBasicBlock(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user