Sirraide wrote: And in the case of `TraverseLambdaCapture` specifically, only 2 parameters need to be `const_cast`, since the `const LambdaCapture *` is already `const` in the RAV implementation. https://github.com/llvm/llvm-project/pull/122991