forked from OSchip/llvm-project
GCOVProfiling - fix uninitialized variable warnings + make getFuncChecksum() const. NFCI.
This commit is contained in:
parent
39c0829a55
commit
edfc94e296
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue