git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309281
91177308-0d34-0410-b5e6-
96231b3b80d8
const GlobalValue *SGV, SetVector<GlobalValue *> *GlobalsToImport) {
// Only import the globals requested for importing.
- if (GlobalsToImport->count(const_cast<GlobalValue *>(SGV)))
- return true;
+ if (!GlobalsToImport->count(const_cast<GlobalValue *>(SGV)))
+ return false;
assert(!isa<GlobalAlias>(SGV) &&
"Unexpected global alias in the import list.");
- // Otherwise no.
- return false;
+ // Otherwise yes.
+ return true;
}
bool FunctionImportGlobalProcessing::doImportAsDefinition(