mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Add TypeLowering::getLoweredRValueType()
In various places we want to get a lowered type, but ignoring the SIL type category (object or address). Add a pair of utility methods for this purpose.
This commit is contained in:
@@ -792,6 +792,14 @@ public:
|
||||
return ti.getLoweredType();
|
||||
}
|
||||
|
||||
CanType getLoweredRValueType(Type t) {
|
||||
return getLoweredType(t).getASTType();
|
||||
}
|
||||
|
||||
CanType getLoweredRValueType(AbstractionPattern origType, Type substType) {
|
||||
return getLoweredType(origType, substType).getASTType();
|
||||
}
|
||||
|
||||
AbstractionPattern getAbstractionPattern(AbstractStorageDecl *storage,
|
||||
bool isNonObjC = false);
|
||||
AbstractionPattern getAbstractionPattern(VarDecl *var,
|
||||
|
||||
Reference in New Issue
Block a user