GCOVProfiling - fix uninitialized variable warnings + make getFuncChecksum() const. NFCI.

This commit is contained in:
Simon Pilgrim 2019-11-14 13:55:28 +00:00
parent 39c0829a55
commit edfc94e296
1 changed files with 3 additions and 3 deletions

View File

@ -129,9 +129,9 @@ private:
// Checksum, produced by hash of EdgeDestinations
SmallVector<uint32_t, 4> FileChecksums;
Module *M;
Module *M = nullptr;
std::function<const TargetLibraryInfo &(Function &F)> GetTLI;
LLVMContext *Ctx;
LLVMContext *Ctx = nullptr;
SmallVector<std::unique_ptr<GCOVFunction>, 16> Funcs;
std::vector<Regex> FilterRe;
std::vector<Regex> ExcludeRe;
@ -385,7 +385,7 @@ namespace {
return EdgeDestinations;
}
uint32_t getFuncChecksum() {
uint32_t getFuncChecksum() const {
return FuncChecksum;
}