aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index d339036..3a9a86d 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -3841,8 +3841,8 @@ cp_tree_equal (tree t1, tree t2)
/* Module duplicate checking can have t1 = new, t2 =
existing, and they should be considered matching at this
point. */
- && (DECL_CONTEXT (t1) != map_context_from
- && DECL_CONTEXT (t2) != map_context_to))
+ && !(DECL_CONTEXT (t1) == map_context_from
+ && DECL_CONTEXT (t2) == map_context_to))
/* When comparing hash table entries, only an exact match is
good enough; we don't want to replace 'this' with the
version from another function. But be more flexible