diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-07 13:51:35 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-07 14:18:44 +0000 |
commit | e58985a5ec355095b5fbdfb659de181efddef2fd (patch) | |
tree | e77007b1a7cfee29f893549d9ff9440c9346f2b3 | |
parent | 10e0d64337d64ebdb658bf9108bd9bb48fb5390c (diff) | |
download | bcm5719-llvm-e58985a5ec355095b5fbdfb659de181efddef2fd.tar.gz bcm5719-llvm-e58985a5ec355095b5fbdfb659de181efddef2fd.zip |
SampleProfWriter - fix uninitialized variable warnings. NFCI.
-rw-r--r-- | llvm/include/llvm/ProfileData/SampleProfWriter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/ProfileData/SampleProfWriter.h b/llvm/include/llvm/ProfileData/SampleProfWriter.h index cc951594c9e..5814f69fdca 100644 --- a/llvm/include/llvm/ProfileData/SampleProfWriter.h +++ b/llvm/include/llvm/ProfileData/SampleProfWriter.h @@ -80,7 +80,7 @@ protected: void computeSummary(const StringMap<FunctionSamples> &ProfileMap); /// Profile format. - SampleProfileFormat Format; + SampleProfileFormat Format = SPF_None; }; /// Sample-based profile writer (text format). @@ -227,7 +227,7 @@ private: // Save the start of SecLBRProfile so we can compute the offset to the // start of SecLBRProfile for each Function's Profile and will keep it // in FuncOffsetTable. - uint64_t SecLBRProfileStart; + uint64_t SecLBRProfileStart = 0; // FuncOffsetTable maps function name to its profile offset in SecLBRProfile // section. It is used to load function profile on demand. MapVector<StringRef, uint64_t> FuncOffsetTable; |