[llvm] 484f69b - [ProfileData] Fix msan -fsanitize-memory-param-retval after D135929
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 29 12:16:25 PST 2022
Author: Fangrui Song
Date: 2022-12-29T12:16:20-08:00
New Revision: 484f69bae731fff42ede9f5c4f59b833bf73e3b8
URL: https://github.com/llvm/llvm-project/commit/484f69bae731fff42ede9f5c4f59b833bf73e3b8
DIFF: https://github.com/llvm/llvm-project/commit/484f69bae731fff42ede9f5c4f59b833bf73e3b8.diff
LOG: [ProfileData] Fix msan -fsanitize-memory-param-retval after D135929
test/tools/llvm-cov/load-multiple-objects.test calls
IndexedInstrProfReader::readBinaryIds with uninitialized BinaryIdsStart.
Added:
Modified:
llvm/include/llvm/ProfileData/InstrProfReader.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ProfileData/InstrProfReader.h b/llvm/include/llvm/ProfileData/InstrProfReader.h
index 8beba947c8630..9c216e57d0059 100644
--- a/llvm/include/llvm/ProfileData/InstrProfReader.h
+++ b/llvm/include/llvm/ProfileData/InstrProfReader.h
@@ -609,7 +609,7 @@ class IndexedInstrProfReader : public InstrProfReader {
/// Total size of binary ids.
uint64_t BinaryIdsSize{0};
/// Start address of binary id length and data pairs.
- const uint8_t *BinaryIdsStart;
+ const uint8_t *BinaryIdsStart = nullptr;
// Index to the current record in the record array.
unsigned RecordIndex;
More information about the llvm-commits
mailing list