From 9889fe2290766430b99a2d4fadbc5ba92f8004b6 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Fri, 7 Jul 2017 10:23:13 +0000 Subject: [PATCH] Fix uninitalized memory access introduced in r307350. Found by MSAN :). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307383 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ExecutionEngine/JITSymbol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ExecutionEngine/JITSymbol.h b/include/llvm/ExecutionEngine/JITSymbol.h index eef562be820..4172f240ba3 100644 --- a/include/llvm/ExecutionEngine/JITSymbol.h +++ b/include/llvm/ExecutionEngine/JITSymbol.h @@ -151,7 +151,7 @@ public: /// user can materialize the definition at any time by calling the getAddress /// method. JITSymbol(GetAddressFtor GetAddress, JITSymbolFlags Flags) - : GetAddress(std::move(GetAddress)), Flags(Flags) {} + : GetAddress(std::move(GetAddress)), CachedAddr(0), Flags(Flags) {} JITSymbol(const JITSymbol&) = delete; JITSymbol& operator=(const JITSymbol&) = delete; -- 2.40.0