mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Avoid TBAA issue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34539 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da10e3350a
commit
d675b8347d
@ -93,7 +93,10 @@ BumpPtrAllocator::~BumpPtrAllocator() {
|
||||
}
|
||||
|
||||
void *BumpPtrAllocator::Allocate(unsigned Size, unsigned Align) {
|
||||
return ((MemRegion*)TheMemory)->Allocate(Size, Align,(MemRegion**)&TheMemory);
|
||||
MemRegion *MRP = (MemRegion*)TheMemory;
|
||||
void *Ptr = MRP->Allocate(Size, Align, &MRP);
|
||||
TheMemory = MRP;
|
||||
return Ptr;
|
||||
}
|
||||
|
||||
void BumpPtrAllocator::PrintStats() const {
|
||||
|
Loading…
Reference in New Issue
Block a user