[llvm-commits] CVS: llvm/lib/Support/MemoryBuffer.cpp
Jeff Cohen
jeffc at jolt-lang.org
Sun Apr 29 07:22:03 PDT 2007
Changes in directory llvm/lib/Support:
MemoryBuffer.cpp updated: 1.1 -> 1.2
---
Log message:
Unbreak build.
---
Diffs of the changes: (+2 -1)
MemoryBuffer.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Support/MemoryBuffer.cpp
diff -u llvm/lib/Support/MemoryBuffer.cpp:1.1 llvm/lib/Support/MemoryBuffer.cpp:1.2
--- llvm/lib/Support/MemoryBuffer.cpp:1.1 Sun Apr 29 01:58:52 2007
+++ llvm/lib/Support/MemoryBuffer.cpp Sun Apr 29 09:21:44 2007
@@ -14,6 +14,7 @@
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/System/MappedFile.h"
#include "llvm/System/Process.h"
+#include <cassert>
#include <cstdio>
#include <cstring>
#include <cerrno>
@@ -158,7 +159,7 @@
MemoryBuffer *MemoryBuffer::getFile(const char *FilenameStart, unsigned FnSize,
int64_t FileSize) {
- sys::PathWithStatus P(FilenameStart, FnSize);
+ sys::PathWithStatus P(std::string(FilenameStart, FnSize));
#if 1
return new MemoryBufferMMapFile(P);
#else
More information about the llvm-commits
mailing list