aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorjeffreytan81 <jeffreytan@meta.com>2024-08-06 18:08:55 -0700
committerGitHub <noreply@github.com>2024-08-06 18:08:55 -0700
commit128ef9eb533afd00da2d3d2cfeab16de6abf2640 (patch)
treedc3abd7250170f0f079729e68021a37ed2e92986 /llvm/lib/Object/ELFObjectFile.cpp
parent874890c68241f500501c42730c2829a5d51f2100 (diff)
downloadllvm-128ef9eb533afd00da2d3d2cfeab16de6abf2640.zip
llvm-128ef9eb533afd00da2d3d2cfeab16de6abf2640.tar.gz
llvm-128ef9eb533afd00da2d3d2cfeab16de6abf2640.tar.bz2
Fix ASAN failure in TestSingleThreadStepTimeout.py (#102208)
This PR fixes the ASAN failure in https://github.com/llvm/llvm-project/pull/90930. The original PR made the assumption that parent `ThreadPlanStepOverRange`'s lifetime will always be longer than `ThreadPlanSingleThreadTimeout` leaf plan so it passes the `m_timeout_info` as reference to it. From the ASAN failure, it seems that this assumption may not be true (likely the thread stack is holding a strong reference to the leaf plan). This PR fixes this lifetime issue by using shared pointer instead of passing by reference. --------- Co-authored-by: jeffreytan81 <jeffreytan@fb.com>
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions