]> granicus.if.org Git - llvm/commitdiff
Fix uninitalized memory access introduced in r307350.
authorDaniel Jasper <djasper@google.com>
Fri, 7 Jul 2017 10:23:13 +0000 (10:23 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 7 Jul 2017 10:23:13 +0000 (10:23 +0000)
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

index eef562be82082898a4941cee423ecd0fc20f0eea..4172f240ba3921cc86db17d229e558e4e519fa48 100644 (file)
@@ -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;