summaryrefslogtreecommitdiff
path: root/gcc/ipa-cp.c
diff options
context:
space:
mode:
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-24 12:39:52 +0000
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-24 12:39:52 +0000
commit019885b01e1cc568f8309fe653b973f1195a3e63 (patch)
treed39fbd5ecff1c0b4481058eed710b7894644ec43 /gcc/ipa-cp.c
parent91096e87f33c945b931481d37bd2094a05fd9b78 (diff)
downloadgcc-019885b01e1cc568f8309fe653b973f1195a3e63.tar.gz
2014-02-24 Martin Jambor <mjambor@suse.cz>
PR ipa/60266 * ipa-cp.c (propagate_constants_accross_call): Bail out early if there are no parameter descriptors. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208067 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r--gcc/ipa-cp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c
index 9bcd02c511f..b71048acc71 100644
--- a/gcc/ipa-cp.c
+++ b/gcc/ipa-cp.c
@@ -1430,6 +1430,8 @@ propagate_constants_accross_call (struct cgraph_edge *cs)
args = IPA_EDGE_REF (cs);
args_count = ipa_get_cs_argument_count (args);
parms_count = ipa_get_param_count (callee_info);
+ if (parms_count == 0)
+ return false;
/* If this call goes through a thunk we must not propagate to the first (0th)
parameter. However, we might need to uncover a thunk from below a series