Skip to content

Commit 079db4f

Browse files
committed
Use correct error handling type
1 parent dc7076b commit 079db4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustllvm/ArchiveWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ LLVMRustArchiveIteratorNext(RustArchiveIterator *rai) {
9494
if (rai->cur == rai->end)
9595
return NULL;
9696
#if LLVM_VERSION_MINOR == 8
97-
Archive::Child* cur = rai->cur.operator->();
97+
const ErrorOr<Archive::Child>* cur = rai->cur.operator->();
9898
if (!*cur) {
9999
LLVMRustSetLastError(cur->getError().message().c_str());
100100
return NULL;

0 commit comments

Comments
 (0)