[LLVM 4.0] Explicitly call constructor of 'llvm::Error'

The implicit constructor has been deleted. We should use
Error::success() instead.

The constructor in the LLVM headers mentions that "success" should be
used instead of the deleted constructor for clarity.
This commit is contained in:
Dylan McKay 2016-12-11 22:42:32 +13:00
parent ea798527e4
commit 6222de3ce4
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ struct RustArchiveIterator {
Archive::child_iterator end;
#if LLVM_VERSION_GE(3, 9)
Error err;
RustArchiveIterator() : err(Error::success()) { }
#endif
};