forked from OSchip/llvm-project
r98363 deleted a '!' when cleaning up whitespace. This caused globals which are
*not* declarations to *not* be placed in the "preserve" list. <rdar://problem/7870735> llvm-svn: 102405
This commit is contained in:
parent
022e7b900f
commit
633c48ec1d
|
@ -328,7 +328,7 @@ void LTOCodeGenerator::applyScopeRestrictions() {
|
|||
}
|
||||
for (Module::global_iterator v = mergedModule->global_begin(),
|
||||
e = mergedModule->global_end(); v != e; ++v) {
|
||||
if (v->isDeclaration() &&
|
||||
if (!v->isDeclaration() &&
|
||||
_mustPreserveSymbols.count(mangler.getNameWithPrefix(v)))
|
||||
mustPreserveList.push_back(::strdup(v->getNameStr().c_str()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue