mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 08:26:29 +00:00
GlobalValue with InternalLinkage may have operands with ExternalLinkage
type. Do not ignore these operands while finding external references. llvm-svn: 30310
This commit is contained in:
parent
2983c628cd
commit
d2db52f4ee
@ -93,7 +93,7 @@ findExternalRefs(Value *value, std::set<std::string> &references,
|
||||
if (lt != LTOInternalLinkage && strncmp (gv->getName().c_str(), "llvm.", 5))
|
||||
references.insert(mangler.getValueName(gv));
|
||||
}
|
||||
else if (Constant *c = dyn_cast<Constant>(value))
|
||||
if (Constant *c = dyn_cast<Constant>(value))
|
||||
// Handle ConstantExpr, ConstantStruct, ConstantArry etc..
|
||||
for (unsigned i = 0, e = c->getNumOperands(); i != e; ++i)
|
||||
findExternalRefs(c->getOperand(i), references, mangler);
|
||||
|
Loading…
Reference in New Issue
Block a user