[CSSPGO][llvm-profgen] Fix a missing initalization
authorHongtao Yu <hoy@fb.com>
Wed, 14 Jul 2021 02:49:50 +0000 (19:49 -0700)
committerHongtao Yu <hoy@fb.com>
Wed, 14 Jul 2021 02:49:55 +0000 (19:49 -0700)
Fixing a missing initalization that accidentaly caused by https://reviews.llvm.org/D103178 .

llvm/tools/llvm-profgen/ProfiledBinary.h

index 8b456d4..be1169e 100644 (file)
@@ -100,7 +100,7 @@ class ProfiledBinary {
   // The target triple.
   Triple TheTriple;
   // The runtime base address that the first executable segment is loaded at.
-  uint64_t BaseAddress;
+  uint64_t BaseAddress = 0;
   // The preferred load address of each executable segment.
   std::vector<uint64_t> PreferredTextSegmentAddresses;
   // The file offset of each executable segment.