Unbreak build.

llvm-svn: 36559
This commit is contained in:
Jeff Cohen 2007-04-29 14:21:44 +00:00
parent 8a00ba1c69
commit 50b2d2c6e3
1 changed files with 2 additions and 1 deletions

View File

@ -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 @@ MemoryBufferMMapFile::~MemoryBufferMMapFile() {
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