[llvm] 0371049 - [ORC] Fix uninitialized variable.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 25 17:21:18 PDT 2021
Author: Lang Hames
Date: 2021-09-26T10:19:25+10:00
New Revision: 0371049277912afc201da721fa659ecef7ab7fba
URL: https://github.com/llvm/llvm-project/commit/0371049277912afc201da721fa659ecef7ab7fba
DIFF: https://github.com/llvm/llvm-project/commit/0371049277912afc201da721fa659ecef7ab7fba.diff
LOG: [ORC] Fix uninitialized variable.
Spotted by Dave Blaikie. Thanks Dave!
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/Shared/SimpleRemoteEPCUtils.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/Shared/SimpleRemoteEPCUtils.cpp b/llvm/lib/ExecutionEngine/Orc/Shared/SimpleRemoteEPCUtils.cpp
index 5841c636e7e2e..aaa1a4f15d2a3 100644
--- a/llvm/lib/ExecutionEngine/Orc/Shared/SimpleRemoteEPCUtils.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/Shared/SimpleRemoteEPCUtils.cpp
@@ -197,7 +197,7 @@ void FDSimpleRemoteEPCTransport::listenLoop() {
char HeaderBuffer[FDMsgHeader::Size];
// Read the header buffer.
{
- bool IsEOF;
+ bool IsEOF = false;
if (auto Err2 = readBytes(HeaderBuffer, FDMsgHeader::Size, &IsEOF)) {
Err = joinErrors(std::move(Err), std::move(Err2));
break;
More information about the llvm-commits
mailing list