Skip to content

Commit c677c57

Browse files
resolve review feedback
1 parent 5163477 commit c677c57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/IPO/FunctionImport.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,11 @@ static std::unique_ptr<Module> loadFile(const std::string &FileName,
208208
}
209209

210210
static bool shouldSkipLocalInAnotherModule(const GlobalVarSummary *RefSummary,
211-
size_t NumRefs,
211+
size_t NumDefs,
212212
StringRef ImporterModule) {
213213
// We can import a local from another module if all inputs are compiled
214-
// with full paths or when there is one entry in the list.
215-
if (ImportAssumeUniqueLocal || NumRefs == 1)
214+
// with full paths or when there is one definition.
215+
if (ImportAssumeUniqueLocal || NumDefs == 1)
216216
return false;
217217
// In other cases, make sure we import the copy in the caller's module if the
218218
// referenced value has local linkage. The only time a local variable can

0 commit comments

Comments
 (0)