aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vrp.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-08-21 21:35:06 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2007-08-21 21:35:06 +0000
commitcdc6461235771760208599c71bf4226da032206c (patch)
tree098804a4e5c928e5b899665e47c37477b03613e1 /gcc/tree-vrp.c
parent958ea87b6ac26c5c90e0e0f6a5cc6d30da382db0 (diff)
downloadgcc-cdc6461235771760208599c71bf4226da032206c.zip
gcc-cdc6461235771760208599c71bf4226da032206c.tar.gz
gcc-cdc6461235771760208599c71bf4226da032206c.tar.bz2
re PR tree-optimization/33134 (ICE in set_value_range, at tree-vrp.c:325)
./: PR tree-optimization/33134 * tree-vrp.c (adjust_range_with_scev): Call set_value_range_to_value. testsuite/: PR tree-optimization/33134 * g++.dg/tree-ssa/pr33134.C: New test. From-SVN: r127679
Diffstat (limited to 'gcc/tree-vrp.c')
-rw-r--r--gcc/tree-vrp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index e1124b9..40d2264 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -2641,7 +2641,7 @@ adjust_range_with_scev (value_range_t *vr, struct loop *loop, tree stmt,
/* Like in PR19590, scev can return a constant function. */
if (is_gimple_min_invariant (chrec))
{
- set_value_range (vr, VR_RANGE, chrec, chrec, vr->equiv);
+ set_value_range_to_value (vr, chrec, vr->equiv);
return;
}