From 0371049277912afc201da721fa659ecef7ab7fba Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Sun, 26 Sep 2021 09:40:15 +1000 Subject: [PATCH] [ORC] Fix uninitialized variable. Spotted by Dave Blaikie. Thanks Dave! --- llvm/lib/ExecutionEngine/Orc/Shared/SimpleRemoteEPCUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/ExecutionEngine/Orc/Shared/SimpleRemoteEPCUtils.cpp b/llvm/lib/ExecutionEngine/Orc/Shared/SimpleRemoteEPCUtils.cpp index 5841c636e7e2..aaa1a4f15d2a 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;