[llvm-commits] CVS: llvm/lib/Bytecode/Reader/ReaderWrappers.cpp

John Criswell criswell at cs.uiuc.edu
Tue Sep 23 16:20:01 PDT 2003


Changes in directory llvm/lib/Bytecode/Reader:

ReaderWrappers.cpp updated: 1.4 -> 1.5

---
Log message:

Added code that ensures that we pass the beginning of the data buffer to
the parsing routines regardless of whether the buffer is re-aligned or not.



---
Diffs of the changes:

Index: llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
diff -u llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.4 llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.5
--- llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.4	Tue Sep 23 11:13:28 2003
+++ llvm/lib/Bytecode/Reader/ReaderWrappers.cpp	Tue Sep 23 16:19:11 2003
@@ -106,7 +106,7 @@
     MustDelete = true;
   } else {
     // If we don't need to copy it over, just use the caller's copy
-    Buffer = Buf;
+    ParseBegin = Buffer = Buf;
     Length = Len;
     MustDelete = false;
   }





More information about the llvm-commits mailing list