[llvm] r365996 - [Object] isNotObjectErrorInvalidFileType: fix use-after-move
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 13 02:23:36 PDT 2019
Author: maskray
Date: Sat Jul 13 02:23:35 2019
New Revision: 365996
URL: http://llvm.org/viewvc/llvm-project?rev=365996&view=rev
Log:
[Object] isNotObjectErrorInvalidFileType: fix use-after-move
Modified:
llvm/trunk/lib/Object/Error.cpp
Modified: llvm/trunk/lib/Object/Error.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/Error.cpp?rev=365996&r1=365995&r2=365996&view=diff
==============================================================================
--- llvm/trunk/lib/Object/Error.cpp (original)
+++ llvm/trunk/lib/Object/Error.cpp Sat Jul 13 02:23:35 2019
@@ -91,5 +91,5 @@ llvm::Error llvm::object::isNotObjectErr
return Error(std::move(M));
}))
return Err2;
- return Err;
+ return Error::success();
}
More information about the llvm-commits
mailing list