Use correct error handling type
This commit is contained in:
parent
dc7076b52e
commit
079db4f971
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ LLVMRustArchiveIteratorNext(RustArchiveIterator *rai) {
|
||||||
if (rai->cur == rai->end)
|
if (rai->cur == rai->end)
|
||||||
return NULL;
|
return NULL;
|
||||||
#if LLVM_VERSION_MINOR == 8
|
#if LLVM_VERSION_MINOR == 8
|
||||||
Archive::Child* cur = rai->cur.operator->();
|
const ErrorOr<Archive::Child>* cur = rai->cur.operator->();
|
||||||
if (!*cur) {
|
if (!*cur) {
|
||||||
LLVMRustSetLastError(cur->getError().message().c_str());
|
LLVMRustSetLastError(cur->getError().message().c_str());
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue