Skip to content

Commit 8d66181

Browse files
committed
Auto merge of rust-lang#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.
2 parents 81fb650 + 6222de3 commit 8d66181

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/rustllvm/ArchiveWrapper.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ struct RustArchiveIterator {
3737
Archive::child_iterator end;
3838
#if LLVM_VERSION_GE(3, 9)
3939
Error err;
40+
41+
RustArchiveIterator() : err(Error::success()) { }
4042
#endif
4143
};
4244

0 commit comments

Comments
 (0)