swift
4804f034 - [NFC] Don't Store An llvm::function_ref

Commit
5 years ago
[NFC] Don't Store An llvm::function_ref This class was relying on the caller to keep this member alive. In general, this will lead to startling memory ownership bugs if, say, the enumerators were returned from these functions. Pass it in as a parameter instead to formalize that contract.
Author
Parents
Loading