[llvm-commits] CVS: llvm/tools/lto/lto.cpp
Devang Patel
dpatel at apple.com
Wed Sep 13 18:35:27 PDT 2006
Changes in directory llvm/tools/lto:
lto.cpp updated: 1.14 -> 1.15
---
Log message:
GlobalValue with InternalLinkage may have operands with ExternalLinkage
type. Do not ignore these operands while finding external references.
---
Diffs of the changes: (+1 -1)
lto.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/tools/lto/lto.cpp
diff -u llvm/tools/lto/lto.cpp:1.14 llvm/tools/lto/lto.cpp:1.15
--- llvm/tools/lto/lto.cpp:1.14 Thu Sep 7 16:41:11 2006
+++ llvm/tools/lto/lto.cpp Wed Sep 13 20:35:13 2006
@@ -93,7 +93,7 @@
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);
More information about the llvm-commits
mailing list