projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53d498b
)
Pass EC by reference to MemoryBufferMMapFile to return error code.
author
Yaron Keren
<yaron.keren@gmail.com>
Fri, 12 Dec 2014 22:27:53 +0000
(22:27 +0000)
committer
Yaron Keren
<yaron.keren@gmail.com>
Fri, 12 Dec 2014 22:27:53 +0000
(22:27 +0000)
Patch by Kim Grasman!
llvm-svn: 224159
llvm/lib/Support/MemoryBuffer.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/MemoryBuffer.cpp
b/llvm/lib/Support/MemoryBuffer.cpp
index
385ed6a
..
379db88
100644
(file)
--- a/
llvm/lib/Support/MemoryBuffer.cpp
+++ b/
llvm/lib/Support/MemoryBuffer.cpp
@@
-203,7
+203,7
@@
class MemoryBufferMMapFile : public MemoryBuffer {
public:
MemoryBufferMMapFile(bool RequiresNullTerminator, int FD, uint64_t Len,
- uint64_t Offset, std::error_code EC)
+ uint64_t Offset, std::error_code
&
EC)
: MFR(FD, sys::fs::mapped_file_region::readonly,
getLegalMapSize(Len, Offset), getLegalMapOffset(Offset), EC) {
if (!EC) {