[llvm-commits] CVS: llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 24 17:35:02 PDT 2003
Changes in directory llvm/lib/Bytecode/Reader:
ReaderWrappers.cpp updated: 1.7 -> 1.8
---
Log message:
Fix alignment problem
---
Diffs of the changes:
Index: llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
diff -u llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.7 llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.8
--- llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.7 Wed Sep 24 17:10:47 2003
+++ llvm/lib/Bytecode/Reader/ReaderWrappers.cpp Wed Sep 24 17:34:17 2003
@@ -97,7 +97,7 @@
const unsigned char *ParseBegin = 0;
if ((intptr_t)Buf & 3) {
Buffer = new unsigned char[Length+4];
- unsigned Offset = 4 - ((intptr_t)Buf & 3); // Make sure it's aligned
+ unsigned Offset = 4 - ((intptr_t)Buffer & 3); // Make sure it's aligned
ParseBegin = Buffer + Offset;
memcpy((unsigned char*)ParseBegin, Buf, Length); // Copy it over
MustDelete = true;
More information about the llvm-commits
mailing list