summaryrefslogtreecommitdiff
path: root/gcc/ipa-devirt.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-07-29 10:18:38 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2019-07-29 08:18:38 +0000
commit66fafc3bf683405e6fedb4fe18dc09035b0073c2 (patch)
treebe70ba2c7d5f9da11fd771796375aed5cb2b2924 /gcc/ipa-devirt.c
parenta8cc00bfd7e15c05b77c8bc9ffc99e523609b6a6 (diff)
re PR c++/91222 (507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571)
PR lto/91222 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers than INDENTIFIER_POINTER. From-SVN: r273866
Diffstat (limited to 'gcc/ipa-devirt.c')
-rw-r--r--gcc/ipa-devirt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index 391a6501ada..418026fcb82 100644
--- a/gcc/ipa-devirt.c
+++ b/gcc/ipa-devirt.c
@@ -1003,7 +1003,7 @@ warn_types_mismatch (tree t1, tree t2, location_t loc1, location_t loc2)
n2 = DECL_NAME (n2);
/* Most of the time, the type names will match, do not be unnecesarily
verbose. */
- if (IDENTIFIER_POINTER (n1) != IDENTIFIER_POINTER (n2))
+ if (n1 != n2)
inform (loc_t1,
"type %qT defined in anonymous namespace cannot match "
"type %qT across the translation unit boundary",