mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-01 16:56:05 +00:00

We've seen bugs where we lost track of error states stored in the functor because we passed the functor by value (that is, std::function) as opposed to reference (llvm::function_ref). This patch fixes a couple of places we pass functors by value. While we are at it, this patch adds curly braces around a "for" loop spanning multiple lines.