diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2023-01-31 09:50:40 -0600 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2023-02-01 08:12:10 -0600 |
commit | 9c4591d7f3acaa00318900bdba4b4ba26c99c666 (patch) | |
tree | 9987d29f88eb239dfb079f5caa81b490b3bfb2de /llvm/lib/IR/ConstantFold.cpp | |
parent | c05ace1067bd21abf504d75f1efb5cf0e1c3fb51 (diff) | |
download | llvm-9c4591d7f3acaa00318900bdba4b4ba26c99c666.zip llvm-9c4591d7f3acaa00318900bdba4b4ba26c99c666.tar.gz llvm-9c4591d7f3acaa00318900bdba4b4ba26c99c666.tar.bz2 |
[LinkerWrapper] Fix memory issues due to unguarded accesses to global state
There were intemittent errors in the linker wrapper when using the
sanitizers in parallel. First, this is because the `TempFiles` global
was not guarded when creating a new file. Second, even though the `Args`
list is passed as const, the internal state is mutable when adding a
string. So that needs to be guarded too.
Fixes https://github.com/llvm/llvm-project/issues/60437
Reviewed By: tianshilei1992
Differential Revision: https://reviews.llvm.org/D142985
Diffstat (limited to 'llvm/lib/IR/ConstantFold.cpp')
0 files changed, 0 insertions, 0 deletions