swift
00b24c90 - Fix SILDebugScopes for closures expanded from an expression macro.

Commit
2 years ago
Fix SILDebugScopes for closures expanded from an expression macro. An expression macro can expand not just to code inside the function, but also to a closure. Such a closure needs to be treated similar to any functions generated from a freestanding macro: Its instructions should have locations that point straight into the macro buffer. Instructions that are expanded into the same function as the macro expansion can be represented using inline locations pointing back to the macro expansion, but this is not an option for top-level function declaration. https://github.com/apple/swift/issues/65484 rdar://108618562
Author
Committer
Parents
Loading