diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-05 07:39:36 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-05 07:39:36 +0000 |
commit | b213bda0fae118fb6fae17dac2e4eb754e905db6 (patch) | |
tree | 8c105d00e5373f1940aedef04dcc607a83fdb1fa /gcc/ipa-inline-analysis.c | |
parent | b649d922c276fdc643ef4a1ea5b0ceb056c5ba45 (diff) | |
download | gcc-b213bda0fae118fb6fae17dac2e4eb754e905db6.tar.gz |
* ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
parameter is SSA name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178524 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-inline-analysis.c')
-rw-r--r-- | gcc/ipa-inline-analysis.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index b56c66944e5..63737535008 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -1187,6 +1187,8 @@ set_cond_stmt_execution_predicate (struct ipa_node_params *info, || gimple_call_num_args (set_stmt) != 1) return; op2 = gimple_call_arg (set_stmt, 0); + if (TREE_CODE (op2) != SSA_NAME) + return; if (!SSA_NAME_IS_DEFAULT_DEF (op2)) return; index = ipa_get_param_decl_index (info, SSA_NAME_VAR (op2)); |