summaryrefslogtreecommitdiff
path: root/gcc/var-tracking.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-05 00:29:13 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-05 00:29:13 +0000
commitd1a21c3587f1f9190f36491fc74f47d4417279fd (patch)
tree7ed483d2a4a54a89e76313cefcc761266b5e3d4b /gcc/var-tracking.c
parent132ab4ad351323c5c2690cc83e60efee8a3558bb (diff)
downloadgcc-d1a21c3587f1f9190f36491fc74f47d4417279fd.tar.gz
PR debug/51746
* var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182897 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/var-tracking.c')
-rw-r--r--gcc/var-tracking.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c
index 27bff38751c..557a2ca41dc 100644
--- a/gcc/var-tracking.c
+++ b/gcc/var-tracking.c
@@ -1,5 +1,5 @@
/* Variable tracking routines for the GNU compiler.
- Copyright (C) 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011
+ Copyright (C) 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
This file is part of GCC.
@@ -5519,7 +5519,7 @@ add_stores (rtx loc, const_rtx expr, void *cuip)
gcc_assert (oval != v);
gcc_assert (REG_P (oloc) || MEM_P (oloc));
- if (!cselib_preserved_value_p (oval))
+ if (oval && !cselib_preserved_value_p (oval))
{
micro_operation moa;