We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3484f9d commit e5d2267Copy full SHA for e5d2267
llvm/include/llvm/Support/Allocator.h
@@ -171,8 +171,8 @@ class BumpPtrAllocatorImpl
171
// will point to the allocation of the entire slab.
172
__msan_allocated_memory(reinterpret_cast<char *>(AlignedPtr), Size);
173
// Similarly, tell ASan about this space.
174
- __asan_unpoison_memory_region(AlignedPtr, Size);
175
- return reinterpret_cast<char *>(reinterpret_cast<char *>(AlignedPtr));
+ __asan_unpoison_memory_region(reinterpret_cast<char *>(AlignedPtr), Size);
+ return reinterpret_cast<char *>(AlignedPtr);
176
}
177
178
return AllocateSlow(Size, SizeToAllocate, Alignment);
0 commit comments