Auto merge of #38296 - dylanmckay:llvm-4.0-errortype, r=alexcrichton

[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:
bors 2016-12-12 07:19:35 +00:00
commit 8d66181b5e
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
};