OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da10e33
)
Avoid TBAA issue.
author
Chris Lattner
<sabre@nondot.org>
Fri, 23 Feb 2007 22:31:24 +0000
(22:31 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 23 Feb 2007 22:31:24 +0000
(22:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34539
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Allocator.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/Allocator.cpp
b/lib/Support/Allocator.cpp
index
a31b80f
..
234fd41
100644
(file)
--- a/
lib/Support/Allocator.cpp
+++ b/
lib/Support/Allocator.cpp
@@
-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 {