mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
Skip declarations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
74382c3453
commit
d0f4103a31
@ -73,7 +73,7 @@ bool SRETPromotion::runOnSCC(const std::vector<CallGraphNode *> &SCC) {
|
|||||||
bool SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
|
bool SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
|
||||||
Function *F = CGN->getFunction();
|
Function *F = CGN->getFunction();
|
||||||
|
|
||||||
if (!F)
|
if (!F || F->isDeclaration())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Make sure that function returns struct.
|
// Make sure that function returns struct.
|
||||||
|
Loading…
Reference in New Issue
Block a user