[llvm] r307383 - Fix uninitalized memory access introduced in r307350.

Daniel Jasper via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 7 03:23:13 PDT 2017


Author: djasper
Date: Fri Jul  7 03:23:13 2017
New Revision: 307383

URL: http://llvm.org/viewvc/llvm-project?rev=307383&view=rev
Log:
Fix uninitalized memory access introduced in r307350.

Found by MSAN :).

Modified:
    llvm/trunk/include/llvm/ExecutionEngine/JITSymbol.h

Modified: llvm/trunk/include/llvm/ExecutionEngine/JITSymbol.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/JITSymbol.h?rev=307383&r1=307382&r2=307383&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/JITSymbol.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/JITSymbol.h Fri Jul  7 03:23:13 2017
@@ -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;




More information about the llvm-commits mailing list