aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2008-08-28 00:00:49 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2008-08-28 00:00:49 +0000
commit1bfb8f513f3d5af5a967b6860b0eb642e738de0c (patch)
tree00b3ce510ba3cb580887d6c03dc392d1719a90bf /gcc/c-common.c
parente9527cfd9665e3cb0887682ccb0d17d040732799 (diff)
downloadgcc-1bfb8f513f3d5af5a967b6860b0eb642e738de0c.zip
gcc-1bfb8f513f3d5af5a967b6860b0eb642e738de0c.tar.gz
gcc-1bfb8f513f3d5af5a967b6860b0eb642e738de0c.tar.bz2
re PR c++/37217 (-Wconversion causes ICE with __builtin_strcmp with one char compare)
2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR 37217 * c-common.c (conversion_warning): Check for null operands. testsuite/ * gcc.dg/pr37217.c: New. From-SVN: r139682
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index d06c969..e0a0829 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -1568,7 +1568,7 @@ conversion_warning (tree type, tree expr)
for (i = 0; i < expr_num_operands; i++)
{
tree op = TREE_OPERAND (expr, i);
- if (DECL_P (op) && DECL_ARTIFICIAL (op))
+ if (op && DECL_P (op) && DECL_ARTIFICIAL (op))
return;
}