llvm-project
41803a24 - [clang][bytecode] Replace MoveFn With DtorFn + memcpy (#151717)

Commit
96 days ago
[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.
Author
Parents
Loading