[clang] forCallable should not erase binding on success (PR #89657)

2024-04-22 Thread via cfe-commits
github-actions[bot] wrote: ⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo. Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account. See [LLVM Discourse](https://discourse.llvm.org/t/hidden-email

[clang] forCallable should not erase binding on success (PR #89657)

2024-04-22 Thread Marco Borgeaud via cfe-commits
https://github.com/marco-antognini-sonarsource created https://github.com/llvm/llvm-project/pull/89657 Do not erase Builder when the first check fails because it could succeed on the second stack frame. The problem was that `InnerMatcher.matches` erases the bindings when it returns false. The