diff options
author | Devang Patel <dpatel@apple.com> | 2006-09-14 01:35:13 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-09-14 01:35:13 +0000 |
commit | 97d92d50aa52fd7f891ddeaf9e3886305a5a77d9 (patch) | |
tree | 27d880974e3f31c3cdf59f915fc1ab64a1c25146 /tools/lto | |
parent | 57d12f962d5af0c23283e0a129b95b106a517e46 (diff) | |
download | external_llvm-97d92d50aa52fd7f891ddeaf9e3886305a5a77d9.zip external_llvm-97d92d50aa52fd7f891ddeaf9e3886305a5a77d9.tar.gz external_llvm-97d92d50aa52fd7f891ddeaf9e3886305a5a77d9.tar.bz2 |
GlobalValue with InternalLinkage may have operands with ExternalLinkage
type. Do not ignore these operands while finding external references.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/lto.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index 05114b7..9dfc456 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -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); |