[llvm] 6b04eca - [CSSPGO][llvm-profgen] Fix a missing initalization
Hongtao Yu via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 13 19:50:16 PDT 2021
Author: Hongtao Yu
Date: 2021-07-13T19:49:55-07:00
New Revision: 6b04ecaab355f0dfce8a980cb67a39662759734c
URL: https://github.com/llvm/llvm-project/commit/6b04ecaab355f0dfce8a980cb67a39662759734c
DIFF: https://github.com/llvm/llvm-project/commit/6b04ecaab355f0dfce8a980cb67a39662759734c.diff
LOG: [CSSPGO][llvm-profgen] Fix a missing initalization
Fixing a missing initalization that accidentaly caused by https://reviews.llvm.org/D103178 .
Added:
Modified:
llvm/tools/llvm-profgen/ProfiledBinary.h
Removed:
################################################################################
diff --git a/llvm/tools/llvm-profgen/ProfiledBinary.h b/llvm/tools/llvm-profgen/ProfiledBinary.h
index 8b456d4f669c..be1169e41f7e 100644
--- a/llvm/tools/llvm-profgen/ProfiledBinary.h
+++ b/llvm/tools/llvm-profgen/ProfiledBinary.h
@@ -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.
More information about the llvm-commits
mailing list