Commit Graph

2 Commits

Author SHA1 Message Date
Robert Widmann
b2619efb3c Emit Debug Variables for Errors Bound in Catch Clauses
Make error variables accessible to a fresh debug scope for the catch clause.

rdar://85982381
2021-12-02 18:38:16 -08:00
Adrian Prantl
b2109ab4db Emit debug info for catch let errorvar error variables.
This implementation adds the debug info emission to
SILGenFunction::emitTemporaryAllocation() which may not be the optimal place to
do this. It may be better to change SILGen to unconditionally emit an
alloc_stack instead of relying on a temporary alloca to be requested.

rdar://75499821
2021-10-20 17:56:34 -07:00