aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/include-mapping/cppreference_parser.py
diff options
context:
space:
mode:
authorTom Eccles <tom.eccles@arm.com>2024-11-04 11:20:32 +0000
committerGitHub <noreply@github.com>2024-11-04 11:20:32 +0000
commit4aaa92578686176243a294eeb2ca5697a99edcaa (patch)
tree05d633991e7b53859e622e6d85196a8e7e2fa9a8 /clang/tools/include-mapping/cppreference_parser.py
parente28d7f713471cf33908a0fe5223f480dfd9b06f0 (diff)
downloadllvm-4aaa92578686176243a294eeb2ca5697a99edcaa.zip
llvm-4aaa92578686176243a294eeb2ca5697a99edcaa.tar.gz
llvm-4aaa92578686176243a294eeb2ca5697a99edcaa.tar.bz2
[llvm][CodeExtractor] fix bug in parameter naming (#114237)
The code extractor tries to apply the names of source input and output values to function arguments. Not all input and output values get added as arguments: some are instead placed inside of a struct passed to the function. The existing renaming code skipped trying to set these struct-packed arguments names (as there is no corresponding function argument to rename), but it still incremented the iterator over the function arguments. This could result in dereferencing an end iterator if struct-packed inputs/outputs preceded non-struct-packed inputs/outputs. This patch rewrites this loop to avoid the end iterator dereference.
Diffstat (limited to 'clang/tools/include-mapping/cppreference_parser.py')
0 files changed, 0 insertions, 0 deletions