Skip to content

Commit 7d749fd

Browse files
vhbitalexcrichton
authored andcommitted
---
yaml --- r: 153734 b: refs/heads/try2 c: 57cade5 h: refs/heads/master v: v3
1 parent f4e8977 commit 7d749fd

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 4ea1dd54943bb208d585c7ae8138df5699995a77
8+
refs/heads/try2: 57cade574418e9507c67ba5177bc177cc7771721
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/llvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit d66318a4aae089bae5c3c38ee42daaa1bd8fadb7
1+
Subproject commit cd24b5c6633b27df2b84249a65a46a610b734494

branches/try2/src/rustllvm/RustWrapper.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -658,13 +658,14 @@ LLVMRustLinkInExternalBitcode(LLVMModuleRef dst, char *bc, size_t len) {
658658
#if LLVM_VERSION_MINOR >= 5
659659
extern "C" void*
660660
LLVMRustOpenArchive(char *path) {
661-
std::unique_ptr<MemoryBuffer> buf;
662-
std::error_code err = MemoryBuffer::getFile(path, buf);
663-
if (err) {
664-
LLVMRustSetLastError(err.message().c_str());
661+
ErrorOr<std::unique_ptr<MemoryBuffer>> buf_or = MemoryBuffer::getFile(path);
662+
if (!buf_or) {
663+
LLVMRustSetLastError(buf_or.getError().message().c_str());
665664
return NULL;
666665
}
667-
Archive *ret = new Archive(buf.release(), err);
666+
667+
std::error_code err;
668+
Archive *ret = new Archive(std::move(buf_or.get()), err);
668669
if (err) {
669670
LLVMRustSetLastError(err.message().c_str());
670671
return NULL;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# If this file is modified, then llvm will be forcibly cleaned and then rebuilt.
22
# The actual contents of this file do not matter, but to trigger a change on the
33
# build bots then the contents should be changed so git updates the mtime.
4-
2014-07-21
4+
2014-07-22

0 commit comments

Comments
 (0)