File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,19 @@ class SILType {
159
159
}
160
160
161
161
// / Returns the canonical AST type referenced by this SIL type.
162
+ // /
163
+ // / NOTE:
164
+ // / 1. The returned AST type may not be a proper formal type.
165
+ // / For example, it may contain a SILFunctionType instead of a
166
+ // / FunctionType.
167
+ // / 2. The returned type may not be the same as the original
168
+ // / unlowered type that produced this SILType (even after
169
+ // / canonicalization). If you need it, you must pass it separately.
170
+ // / For example, `AnyObject.Type` may get lowered to
171
+ // / `$@thick AnyObject.Type`, for which the AST type will be
172
+ // / `@thick AnyObject.Type`.
173
+ // / More generally, you cannot recover a formal type from
174
+ // / a lowered type. See docs/SIL.rst for more details.
162
175
CanType getASTType () const {
163
176
return CanType (value.getPointer ());
164
177
}
You can’t perform that action at this time.
0 commit comments