projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21beed6
)
Unbreak build.
author
Jeff Cohen
<jeffc@jolt-lang.org>
Sun, 29 Apr 2007 14:21:44 +0000
(14:21 +0000)
committer
Jeff Cohen
<jeffc@jolt-lang.org>
Sun, 29 Apr 2007 14:21:44 +0000
(14:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36559
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/MemoryBuffer.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/MemoryBuffer.cpp
b/lib/Support/MemoryBuffer.cpp
index c590f02d74c117b2d8dde49058a6b429c57ea1d4..3c1ee90629550f27be7a8d28636d6cc7ba47eff4 100644
(file)
--- a/
lib/Support/MemoryBuffer.cpp
+++ b/
lib/Support/MemoryBuffer.cpp
@@
-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