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:
commit
8d66181b5e
1 changed files with 2 additions and 0 deletions
|
|
@ -37,6 +37,8 @@ struct RustArchiveIterator {
|
|||
Archive::child_iterator end;
|
||||
#if LLVM_VERSION_GE(3, 9)
|
||||
Error err;
|
||||
|
||||
RustArchiveIterator() : err(Error::success()) { }
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue