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:
7f7b346
)
Fix non-64-bit clean code.
author
Evan Cheng
<evan.cheng@apple.com>
Wed, 21 Jun 2006 00:29:14 +0000
(
00:29
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Wed, 21 Jun 2006 00:29:14 +0000
(
00:29
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28891
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineCodeEmitter.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineCodeEmitter.h
b/include/llvm/CodeGen/MachineCodeEmitter.h
index
b1d2a9a
..
758a167
100644
(file)
--- a/
include/llvm/CodeGen/MachineCodeEmitter.h
+++ b/
include/llvm/CodeGen/MachineCodeEmitter.h
@@
-129,7
+129,8
@@
public:
if (Alignment == 0) Alignment = 1;
// Move the current buffer ptr up to the specified alignment.
CurBufferPtr =
- (unsigned char*)(((intptr_t)CurBufferPtr+Alignment-1) & ~(Alignment-1));
+ (unsigned char*)(((intptr_t)CurBufferPtr+Alignment-1) &
+ ~(intptr_t)(Alignment-1));
if (CurBufferPtr > BufferEnd)
CurBufferPtr = BufferEnd;
}