forked from OSchip/llvm-project
				
			
							parent
							
								
									5b69f3fa33
								
							
						
					
					
						commit
						6bb36e686d
					
				| 
						 | 
				
			
			@ -73,7 +73,7 @@ bool SRETPromotion::runOnSCC(const std::vector<CallGraphNode *> &SCC) {
 | 
			
		|||
bool SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
 | 
			
		||||
  Function *F = CGN->getFunction();
 | 
			
		||||
 | 
			
		||||
  if (!F)
 | 
			
		||||
  if (!F || F->isDeclaration())
 | 
			
		||||
    return false;
 | 
			
		||||
 | 
			
		||||
  // Make sure that function returns struct.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue