Skip to content

Commit

Permalink
[ProfileData] Fix msan -fsanitize-memory-param-retval after D135929
Browse files Browse the repository at this point in the history
test/tools/llvm-cov/load-multiple-objects.test calls
IndexedInstrProfReader::readBinaryIds with uninitialized BinaryIdsStart.
  • Loading branch information
MaskRay committed Dec 29, 2022
1 parent 8f8313d commit 484f69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/include/llvm/ProfileData/InstrProfReader.h
Expand Up @@ -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;
Expand Down

0 comments on commit 484f69b

Please sign in to comment.