Remove unused variable (#88223)

fix the CI
This commit is contained in:
Lei Wang 2024-04-09 19:25:08 -07:00 committed by GitHub
parent 44c79da3ae
commit 1aceee7bb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -86,12 +86,9 @@ template <> struct IRTraits<BasicBlock> {
// SampleProfileProber.
class PseudoProbeManager {
DenseMap<uint64_t, PseudoProbeDescriptor> GUIDToProbeDescMap;
const ThinOrFullLTOPhase LTOPhase;
public:
PseudoProbeManager(const Module &M,
ThinOrFullLTOPhase LTOPhase = ThinOrFullLTOPhase::None)
: LTOPhase(LTOPhase) {
PseudoProbeManager(const Module &M) {
if (NamedMDNode *FuncInfo =
M.getNamedMetadata(PseudoProbeDescMetadataName)) {
for (const auto *Operand : FuncInfo->operands()) {

View File

@ -2059,7 +2059,7 @@ bool SampleProfileLoader::doInitialization(Module &M,
// Load pseudo probe descriptors for probe-based function samples.
if (Reader->profileIsProbeBased()) {
ProbeManager = std::make_unique<PseudoProbeManager>(M, LTOPhase);
ProbeManager = std::make_unique<PseudoProbeManager>(M);
if (!ProbeManager->moduleIsProbed(M)) {
const char *Msg =
"Pseudo-probe-based profile requires SampleProfileProbePass";