Skip to content

Commit 5385027

Browse files
committed
Ease cherry-picking by providing an impl of SILType::getASTType().
SILType::getSwiftRValueType() was renamed to SILType::getASTType() on master. This commit provides SILType::getASTType() and delegates to getSwiftRValueType() to ease cherry-picking from master -> 4.2. Otherwise, all of the times someone on master cherry-picks such code, we will get a compilation error.
1 parent 0acd02d commit 5385027

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)