]> git.lizzy.rs Git - rust.git/commit
[LLVM 4.0] Explicitly call constructor of 'llvm::Error'
authorDylan McKay <dylanmckay34@gmail.com>
Sun, 11 Dec 2016 09:42:32 +0000 (22:42 +1300)
committerDylan McKay <dylanmckay34@gmail.com>
Sun, 11 Dec 2016 09:44:19 +0000 (22:44 +1300)
commit6222de3ce4fcb59aeb0516305767f0043cc88f1e
treeb52a84e49f546de18dd3775d8fc59a8b9aa1c6c7
parentea798527e42379af207b3da9e9aef41fd7e812c8
[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.
src/rustllvm/ArchiveWrapper.cpp