aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend.hpp
diff options
context:
space:
mode:
authorHarold Brenes <harold@hbrenes.com>2025-10-05 15:50:01 -0400
committerHarold Brenes <harold@hbrenes.com>2025-10-05 15:53:42 -0400
commit86f9c920dafc40c6bb1eb5cc5461b20ca954459c (patch)
tree99f60aa0097a6bacfbfe2f0a263aa920dc3e7378 /src/llvm_backend.hpp
parent0f97382fa3e46da80705c00dfe02f3deb9562e4f (diff)
Fix Objective-C block symbols naming conflict across modules.
Fix assert triggered when there's checker errors and Objective-C method implementations.
Diffstat (limited to 'src/llvm_backend.hpp')
-rw-r--r--src/llvm_backend.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend.hpp b/src/llvm_backend.hpp
index 6870f6259..6a4616694 100644
--- a/src/llvm_backend.hpp
+++ b/src/llvm_backend.hpp
@@ -206,7 +206,7 @@ struct lbModule {
StringMap<lbAddr> objc_classes;
StringMap<lbAddr> objc_selectors;
StringMap<lbAddr> objc_ivars;
- isize objc_next_block_id; // Used to name objective-c blocks, per module
+ std::atomic<isize> objc_next_block_id; // Used to name objective-c blocks. IMPORTANT: Tracked on the main module
PtrMap<u64/*type hash*/, lbAddr> map_cell_info_map; // address of runtime.Map_Info
PtrMap<u64/*type hash*/, lbAddr> map_info_map; // address of runtime.Map_Cell_Info