Skip to content

Commit 66ec2fd

Browse files
authored
Merge pull request #16918 from gottesmm/swift-4.2-branch-get-ast-type
[4.2] Ease cherry-picking by providing an impl of SILType::getASTType().
2 parents 9dd861b + 5385027 commit 66ec2fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/swift/SIL/SILType.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ class SILType {
158158
return SILType(getSwiftRValueType(), SILValueCategory::Object);
159159
}
160160

161+
/// Returns the canonical AST type referenced by this SIL type.
162+
CanType getASTType() const {
163+
return getSwiftRValueType();
164+
}
165+
161166
/// Returns the Swift type referenced by this SIL type.
162167
CanType getSwiftRValueType() const {
163168
return CanType(value.getPointer());

0 commit comments

Comments
 (0)