aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSahilPatidar <sahilpatidar60@gmail.com>2025-11-06 12:30:22 +0530
committerGitHub <noreply@github.com>2025-11-06 12:30:22 +0530
commitcc8f7cd2521c98c53f3cdb053b689543c36671c4 (patch)
treedd1d66df7c6443e1298baeaf6663101424cde8e8 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent5e7f7a496ccb4856c7060ba9a4ba222a79306375 (diff)
downloadllvm-cc8f7cd2521c98c53f3cdb053b689543c36671c4.zip
llvm-cc8f7cd2521c98c53f3cdb053b689543c36671c4.tar.gz
llvm-cc8f7cd2521c98c53f3cdb053b689543c36671c4.tar.bz2
[ORC][LibraryResolver] Fix ensureFilterBuilt assertion failure and concurrency issue. (#166510)
- Fixed architecture compatibility check. Previously, we used `sys::getDefaultTriple()`, which caused issues on build bots using cross-compilation. We now ensure that the target architecture where the shared library (.so) is run or loaded matches the architecture it was built for. - Fixed ensureFilterBuilt assertion failure. - Replaced use of FilteredView with a safer alternative for concurrent environments. The old FilteredView approach iterated over shared state without sufficient synchronization, which could lead to invalid accesses when libraries were being added or removed concurrently.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions