OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74382c3
)
Skip declarations.
author
Devang Patel
<dpatel@apple.com>
Tue, 4 Mar 2008 17:47:06 +0000
(17:47 +0000)
committer
Devang Patel
<dpatel@apple.com>
Tue, 4 Mar 2008 17:47:06 +0000
(17:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47890
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/StructRetPromotion.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/StructRetPromotion.cpp
b/lib/Transforms/IPO/StructRetPromotion.cpp
index
6659c5a
..
feb5be6
100644
(file)
--- a/
lib/Transforms/IPO/StructRetPromotion.cpp
+++ b/
lib/Transforms/IPO/StructRetPromotion.cpp
@@
-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.