Files
swift-mirror/lib/Sema/DebuggerTestingTransform.cpp
Pavel Yaskevich b337360d63 [Sema] DebuggerTestingTransform: avoid re-using AST nodes in generated code
While building a closure to inject `checkExpect` code, clone member
references associated with assignment. Re-using AST nodes is generally
invalid. This is visible with multi-statement closure inference enabled,
because the body is type-checked together with enclosing context
and both elements end up sharing `DeclRefExpr` and `MemberRefExpr`s.
2021-12-03 10:53:40 -08:00

11 KiB