* tree.c (cp_tree_equal): Fix a pasto.

From-SVN: r196705
This commit is contained in:
Jakub Jelinek 2013-03-16 20:36:41 +01:00 committed by Jakub Jelinek
parent 87eb16a1bc
commit b722c9a2a2
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2013-03-16 Jakub Jelinek <jakub@redhat.com>
* tree.c (cp_tree_equal): Fix a pasto.
PR c++/56607
* typeck.c (cp_build_binary_op): When calling warn_for_div_by_zero,
pass op1 through maybe_constant_value first.

View File

@ -2486,7 +2486,7 @@ cp_tree_equal (tree t1, tree t2)
t1 = TREE_OPERAND (t1, 0);
for (code2 = TREE_CODE (t2);
CONVERT_EXPR_CODE_P (code2)
|| code1 == NON_LVALUE_EXPR;
|| code2 == NON_LVALUE_EXPR;
code2 = TREE_CODE (t2))
t2 = TREE_OPERAND (t2, 0);