The callback function was captured by reference but it lived on the stack and was in danger of being overwritten and could cause a crash. Differential Revision: https://reviews.llvm.org/D132313
5.4 KiB
5.4 KiB