Files
swift-mirror/lib/Sema/DebuggerTestingTransform.cpp
Pavel Yaskevich 990d8c8bce [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-11-15 16:42:04 -08:00

11 KiB