aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-16 15:11:24 +0000
committergingerBill <bill@gingerbill.org>2023-01-16 15:11:24 +0000
commitb51be71a6f49dcb413e6989893e3a7bf706ef99d (patch)
treeca674880359dadb767c799d6be6a5a38b969e41e /src
parente488cf460193e213d418efead104d4e0c1afd9c2 (diff)
Remove initialization on static atomic
Diffstat (limited to 'src')
-rw-r--r--src/llvm_backend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp
index bc8056ec9..bea659f2b 100644
--- a/src/llvm_backend.cpp
+++ b/src/llvm_backend.cpp
@@ -304,7 +304,7 @@ gb_internal lbValue lb_hasher_proc_for_type(lbModule *m, Type *type) {
return {(*found)->value, (*found)->type};
}
- static std::atomic<u32> proc_index = 0;
+ static std::atomic<u32> proc_index;
char buf[32] = {};
isize n = gb_snprintf(buf, 32, "__$hasher%u", 1+proc_index.fetch_add(1));