Skip to content

Commit e5d2267

Browse files
committed
Fix copy-paste-o
1 parent 3484f9d commit e5d2267

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/Support/Allocator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ class BumpPtrAllocatorImpl
171171
// will point to the allocation of the entire slab.
172172
__msan_allocated_memory(reinterpret_cast<char *>(AlignedPtr), Size);
173173
// Similarly, tell ASan about this space.
174-
__asan_unpoison_memory_region(AlignedPtr, Size);
175-
return reinterpret_cast<char *>(reinterpret_cast<char *>(AlignedPtr));
174+
__asan_unpoison_memory_region(reinterpret_cast<char *>(AlignedPtr), Size);
175+
return reinterpret_cast<char *>(AlignedPtr);
176176
}
177177

178178
return AllocateSlow(Size, SizeToAllocate, Alignment);

0 commit comments

Comments
 (0)