Fix non-64-bit clean code.

llvm-svn: 28891
This commit is contained in:
Evan Cheng 2006-06-21 00:29:14 +00:00
parent 1f1b096142
commit cb8cc7bdef
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}