forked from OSchip/llvm-project
Process externally visible functions also. Later on code generator will do the right thing.
llvm-svn: 47889
This commit is contained in:
parent
ecce5af83d
commit
5b69f3fa33
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue