Fix assert from r309278

llvm-svn: 309281
This commit is contained in:
David Blaikie 2017-07-27 15:28:10 +00:00
parent 960e7663f3
commit 72c0b1cc1b
1 changed files with 4 additions and 4 deletions

View File

@ -24,14 +24,14 @@ bool FunctionImportGlobalProcessing::doImportAsDefinition(
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(