diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-12 00:31:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-12 00:31:47 +0000 |
commit | 21c39a65201e0f9ed98d399b45fb629fe12a728f (patch) | |
tree | 829761c5bd186f32572ffe84fcd5fd239a44e9e2 /lib/ExecutionEngine/JIT/JIT.cpp | |
parent | be6a039ad4c6314176b0834c341a25504fded32e (diff) |
Remove non-portable optimization that isn't worth it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/JIT.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/JIT.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp index 2bf0e13baf..d2d8b49953 100644 --- a/lib/ExecutionEngine/JIT/JIT.cpp +++ b/lib/ExecutionEngine/JIT/JIT.cpp @@ -309,11 +309,7 @@ void *JIT::getOrEmitGlobalVariable(const GlobalVariable *GV) { // space. Ptr = malloc(S+A); unsigned MisAligned = ((intptr_t)Ptr & (A-1)); - unsigned Offset = MisAligned ? (A-MisAligned) : 0; - - // Trim the tail off the memory block. - realloc(Ptr, S+Offset); - Ptr = (char*)Ptr + Offset; + Ptr = (char*)Ptr + (MisAligned ? (A-MisAligned) : 0); } state.getPendingGlobals(locked).push_back(GV); } |