1
Fork 0

Use correct error handling type

This commit is contained in:
Jan-Erik Rediger 2016-07-21 11:24:51 +02:00
parent dc7076b52e
commit 079db4f971

View file

@ -94,7 +94,7 @@ LLVMRustArchiveIteratorNext(RustArchiveIterator *rai) {
if (rai->cur == rai->end)
return NULL;
#if LLVM_VERSION_MINOR == 8
Archive::Child* cur = rai->cur.operator->();
const ErrorOr<Archive::Child>* cur = rai->cur.operator->();
if (!*cur) {
LLVMRustSetLastError(cur->getError().message().c_str());
return NULL;