Skip to content

Commit 6222de3

Browse files
author
Dylan McKay
committed
[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.
1 parent ea79852 commit 6222de3

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)