diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-08-02 14:47:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-02 14:47:49 +0200 |
commit | 41803a24140c3c53bbc82c7b61c7b196cf9d113a (patch) | |
tree | c0f299d94a06fbd0e4854d460904eb09cfdf24cc /clang/tools/include-mapping/cppreference_parser.py | |
parent | 0e40051565db1399b573b4bddc43c806ca86dc8d (diff) | |
download | llvm-41803a24140c3c53bbc82c7b61c7b196cf9d113a.zip llvm-41803a24140c3c53bbc82c7b61c7b196cf9d113a.tar.gz llvm-41803a24140c3c53bbc82c7b61c7b196cf9d113a.tar.bz2 |
[clang][bytecode] Replace MoveFn With DtorFn + memcpy (#151717)
First, the old MoveFn was rather inefficient, since the dead data cannot
ever be accessed anyway.
Second, there was a problem where the only reason a block still had a
pointer to it (and thus was made into a DeadBlock instead of simply
being deallocated) as that a nested field in the block pointed to the
block itself.
Fix this by calling the dtor function unconditionally. If the block
*still* has pointers after that, we really need to create a DeadBlock
for it.
Diffstat (limited to 'clang/tools/include-mapping/cppreference_parser.py')
0 files changed, 0 insertions, 0 deletions