aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorShafik Yaghmour <shafik.yaghmour@intel.com>2025-04-11 08:38:37 -0700
committerGitHub <noreply@github.com>2025-04-11 08:38:37 -0700
commitffac1404f8e0f606cac12a21777dfe700b455e87 (patch)
tree977059e953209d3e053dd5ea7e53108adf8bf203 /clang/lib/Frontend/CompilerInstance.cpp
parenta4b7688d27da1a0189fff6549853fdfe22b33c48 (diff)
downloadllvm-ffac1404f8e0f606cac12a21777dfe700b455e87.zip
llvm-ffac1404f8e0f606cac12a21777dfe700b455e87.tar.gz
llvm-ffac1404f8e0f606cac12a21777dfe700b455e87.tar.bz2
[Clang] [Sema] Document invariant in Sema::AddOverloadCandidate (#135256)
Static analysis flagged 1 - ArgIdx in Sema::AddOverloadCandidate for its potential to overflow. Turns out this is intentional since when PO == OverloadCandidateParamOrder::Reversed Args.size() is always two, so this will never overflow. We document using an assert. Fixes: https://github.com/llvm/llvm-project/issues/135086
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions