diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2022-03-11 10:08:34 -0600 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2022-03-11 10:10:36 -0600 |
commit | 9ddb1a49ac08d8cd66771de56d5c3227d586b579 (patch) | |
tree | 09f5d414be59f9c9aab36da2c077da4e2106a02f /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 30c5269d93258875b7ef72095068c8d9487fb9d2 (diff) | |
download | llvm-9ddb1a49ac08d8cd66771de56d5c3227d586b579.zip llvm-9ddb1a49ac08d8cd66771de56d5c3227d586b579.tar.gz llvm-9ddb1a49ac08d8cd66771de56d5c3227d586b579.tar.bz2 |
[Attributor][FIX] Avoid double free (and useless state copy)
In an attempt to remove the memory leak we introduced a double free.
The problem was that we allowed a plain copy of the state and it was
actually used. The use was useless, so it is gone now. The copy
constructor is gone as well. The move constructor ensures the Accesses
pointers are owned by a single state, I hope.
Reported by: https://lab.llvm.org/buildbot/#/builders/16/builds/25820
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions