Skip to content

Commit e3531ca

Browse files
mingmingl-llvmyuxuanchen1997
authored andcommitted
Fix buildbot failure by fixing the base pointer type (#100508)
Summary: This should fix buildbot failures like https://lab.llvm.org/buildbot/#/builders/169/builds/1448 Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60250583
1 parent e4717c1 commit e3531ca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/IPO/FunctionImport.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static std::unique_ptr<Module> loadFile(const std::string &FileName,
207207
return Result;
208208
}
209209

210-
static bool shouldSkipLocalInAnotherModule(const GlobalVarSummary *RefSummary,
210+
static bool shouldSkipLocalInAnotherModule(const GlobalValueSummary *RefSummary,
211211
size_t NumDefs,
212212
StringRef ImporterModule) {
213213
// We can import a local from another module if all inputs are compiled
@@ -268,8 +268,7 @@ static auto qualifyCalleeCandidates(
268268
// there is only one entry in the list or when all files in the program
269269
// are compiled with full path - in both cases the local function has
270270
// unique PGO name and GUID.
271-
if (shouldSkipLocalInAnotherModule(dyn_cast<GlobalVarSummary>(Summary),
272-
CalleeSummaryList.size(),
271+
if (shouldSkipLocalInAnotherModule(Summary, CalleeSummaryList.size(),
273272
CallerModulePath))
274273
return {
275274
FunctionImporter::ImportFailureReason::LocalLinkageNotInModule,

0 commit comments

Comments
 (0)