diff options
author | Shoaib Meenai <smeenai@fb.com> | 2021-10-30 16:49:20 -0700 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2021-10-31 16:14:30 -0700 |
commit | 0cf624cad7a0afbac638835cba279dd42adcc39d (patch) | |
tree | 893f638e5a47f6ed45ecc727c3f265d79f1fe661 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 0f6d720f1f485b7a1842170b571e6b9af7bcaa0e (diff) | |
download | llvm-0cf624cad7a0afbac638835cba279dd42adcc39d.zip llvm-0cf624cad7a0afbac638835cba279dd42adcc39d.tar.gz llvm-0cf624cad7a0afbac638835cba279dd42adcc39d.tar.bz2 |
[TimeProfiler] Reset variable to nullptr
Otherwise we'll hit a spurious assert failure when we reset and then
reinitialize TimeProfiler on the same thread, as can happen when e.g.
using LLD as a library and running it multiple times in the same
process.
Makes `lld/test/MachO/time-trace.s` pass with `LLD_IN_TEST=2`, which
runs the linker twice in the same process and exposed the issue.
Reviewed By: MaskRay, mehdi_amini
Differential Revision: https://reviews.llvm.org/D112880
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions