Skip to content

Commit 304e3f1

Browse files
author
git apple-llvm automerger
committed
Merge commit '0ebb75608759' from llvm.org/main into next
2 parents af6ce56 + 0ebb756 commit 304e3f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/hwasan/hwasan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ void __hwasan_init_static() {
319319
InitializeSingleGlobal(global);
320320
}
321321

322-
void __hwasan_init() {
322+
__attribute__((constructor(0))) void __hwasan_init() {
323323
CHECK(!hwasan_init_is_running);
324324
if (hwasan_inited) return;
325325
hwasan_init_is_running = 1;

0 commit comments

Comments
 (0)