mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Skip declarations.
llvm-svn: 47890
This commit is contained in:
parent
e33efc5c23
commit
aef77854f9
@ -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
Block a user