Commit 6a1f8c7
committed
[Sema] Re-parent AccessorDecls for local vars too
Make sure we walk into any non-DeclContext decl,
allowing us to e.g walk into VarDecls to correctly
re-contextualize their accessors in an outer
autoclosure. I don't *think* this currently makes
much of a difference since the mangling today uses
the DeclContext of the VarDecl, but it seems like
the right thing to do regardless.1 parent af9e0c1 commit 6a1f8c7
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
| |||
0 commit comments