Commit Graph

2 Commits

Author SHA1 Message Date
Slava Pestov
45330816b4 Profile: Run tests through to -emit-ir to get better coverage 2020-03-17 19:03:03 -04:00
Vedant Kumar
0cef7b05d2 [SILProfiler] Do not visit closure bodies twice
Closure bodies should only be visited for coverage purposes once -- when
the associated SILFunction is created.

This resolves an assertion failure about an empty region stack (this
root cause of which was double-visitation of a closure body).
2019-10-08 09:51:17 -07:00