aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ccp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-ssa-ccp.cc')
-rw-r--r--gcc/tree-ssa-ccp.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/tree-ssa-ccp.cc b/gcc/tree-ssa-ccp.cc
index 85c0460..9778e77 100644
--- a/gcc/tree-ssa-ccp.cc
+++ b/gcc/tree-ssa-ccp.cc
@@ -4253,6 +4253,12 @@ pass_fold_builtins::execute (function *fun)
}
callee = gimple_call_fndecl (stmt);
+ if (!callee
+ && gimple_call_internal_p (stmt, IFN_ASSUME))
+ {
+ gsi_remove (&i, true);
+ continue;
+ }
if (!callee || !fndecl_built_in_p (callee, BUILT_IN_NORMAL))
{
gsi_next (&i);