Process externally visible functions also. Later on code generator will do the right thing.

llvm-svn: 47889
This commit is contained in:
Devang Patel 2008-03-04 17:46:26 +00:00
parent ecce5af83d
commit 5b69f3fa33
1 changed files with 1 additions and 2 deletions

View File

@ -73,8 +73,7 @@ bool SRETPromotion::runOnSCC(const std::vector<CallGraphNode *> &SCC) {
bool SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
Function *F = CGN->getFunction();
// Make sure that it is local to this module.
if (!F || !F->hasInternalLinkage())
if (!F)
return false;
// Make sure that function returns struct.