aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMarco Borgeaud <marco.borgeaud@sonarsource.com>2024-06-05 10:20:37 +0200
committerGitHub <noreply@github.com>2024-06-05 10:20:37 +0200
commit04a02c1b88cfb8445ce962ba5ce496401a3e27fe (patch)
tree4579abee4230b1eed94cb2fc0f8db72670d4784d /flang/lib/Frontend/CompilerInvocation.cpp
parent419e7b825647779dc3415aa1129627b284baf6ca (diff)
downloadllvm-04a02c1b88cfb8445ce962ba5ce496401a3e27fe.zip
llvm-04a02c1b88cfb8445ce962ba5ce496401a3e27fe.tar.gz
llvm-04a02c1b88cfb8445ce962ba5ce496401a3e27fe.tar.bz2
[ASTMatchers] forCallable should not erase binding on success (#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 appropriate solution is to pass a copy of the bindings, similar to what `matchesFirstInRange` does.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions