From: Lang Hames Date: Sat, 7 Jan 2017 22:27:52 +0000 (+0000) Subject: [Orc][RPC] Remove a redundant 'if' statement. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5cc55347525be5a9acee856ec7f9771ec107da84;p=llvm [Orc][RPC] Remove a redundant 'if' statement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291373 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ExecutionEngine/Orc/RawByteChannel.h b/include/llvm/ExecutionEngine/Orc/RawByteChannel.h index 83a7b9a844f..3b6c84eb196 100644 --- a/include/llvm/ExecutionEngine/Orc/RawByteChannel.h +++ b/include/llvm/ExecutionEngine/Orc/RawByteChannel.h @@ -48,9 +48,7 @@ public: template Error startSendMessage(const FunctionIdT &FnId, const SequenceIdT &SeqNo) { writeLock.lock(); - if (auto Err = serializeSeq(*this, FnId, SeqNo)) - return Err; - return Error::success(); + return serializeSeq(*this, FnId, SeqNo); } /// Notify the channel that we're ending a message send.