Skip to content

Commit e42e46a

Browse files
committed
Fix compiler-rt test
1 parent 091a731 commit e42e46a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/test/hwasan/TestCases/libc_thread_freeres.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_hwasan -Wno-error=return-type %s -o %t && %env_hwasan_opts=random_tags=1 %run %t
1+
// RUN: %clang_hwasan %s -o %t && %env_hwasan_opts=random_tags=1 %run %t
22

33
#include <pthread.h>
44
#include <sanitizer/hwasan_interface.h>
@@ -11,6 +11,7 @@ void *ThreadFn(void *) {
1111
__hwasan_enable_allocator_tagging();
1212
// This will trigger memory deallocation in __strerror_thread_freeres,
1313
// at a point when HwasanThread is already gone.
14+
return NULL;
1415
}
1516

1617
int main() {

0 commit comments

Comments
 (0)