diff options
| author | Dylan McKay <dylanmckay34@gmail.com> | 2016-12-11 22:42:32 +1300 |
|---|---|---|
| committer | Dylan McKay <dylanmckay34@gmail.com> | 2016-12-11 22:44:19 +1300 |
| commit | 6222de3ce4fcb59aeb0516305767f0043cc88f1e (patch) | |
| tree | b52a84e49f546de18dd3775d8fc59a8b9aa1c6c7 /src/rustllvm/ArchiveWrapper.cpp | |
| parent | ea798527e42379af207b3da9e9aef41fd7e812c8 (diff) | |
| download | rust-6222de3ce4fcb59aeb0516305767f0043cc88f1e.tar.gz rust-6222de3ce4fcb59aeb0516305767f0043cc88f1e.zip | |
[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.
Diffstat (limited to 'src/rustllvm/ArchiveWrapper.cpp')
| -rw-r--r-- | src/rustllvm/ArchiveWrapper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rustllvm/ArchiveWrapper.cpp b/src/rustllvm/ArchiveWrapper.cpp index 5adb05d6089..c7f426fbfa3 100644 --- a/src/rustllvm/ArchiveWrapper.cpp +++ b/src/rustllvm/ArchiveWrapper.cpp @@ -37,6 +37,8 @@ struct RustArchiveIterator { Archive::child_iterator end; #if LLVM_VERSION_GE(3, 9) Error err; + + RustArchiveIterator() : err(Error::success()) { } #endif }; |
