aboutsummaryrefslogtreecommitdiffstats
path: root/transient_heap.c
diff options
context:
space:
mode:
authorUrabe, Shyouhei <shyouhei@ruby-lang.org>2019-04-23 17:47:49 +0900
committerUrabe, Shyouhei <shyouhei@ruby-lang.org>2019-04-26 15:59:40 +0900
commitbdd1b300f8bf540c8f237cce50e42991f94101e3 (patch)
treeb86a7be6145c1a3aefaafc21fe8da8a300675a4b /transient_heap.c
parent171a6ad1c12b1600b01d9bde29947526ae3e2aee (diff)
downloadruby-bdd1b300f8bf540c8f237cce50e42991f94101e3.tar.gz
__asan_region_is_poisoned takes void *
while heap->obj is a VALUE. A cast should be there.
Diffstat (limited to 'transient_heap.c')
-rw-r--r--transient_heap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transient_heap.c b/transient_heap.c
index 334bd4f320..9aad8a183d 100644
--- a/transient_heap.c
+++ b/transient_heap.c
@@ -807,7 +807,7 @@ transient_heap_block_update_refs(struct transient_heap* theap, struct transient_
unpoison_memory_region(header, sizeof *header, false);
- void *poisoned = __asan_region_is_poisoned(header->obj, SIZEOF_VALUE);
+ void *poisoned = __asan_region_is_poisoned((void *)header->obj, SIZEOF_VALUE);
unpoison_object(header->obj, false);
header->obj = rb_gc_new_location(header->obj);