aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/except.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/except.c')
-rw-r--r--gcc/cp/except.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/except.c b/gcc/cp/except.c
index ca73686..24b4310 100644
--- a/gcc/cp/except.c
+++ b/gcc/cp/except.c
@@ -1073,7 +1073,7 @@ complete_ptr_ref_or_void_ptr_p (type, from)
{
tree core = TREE_TYPE (type);
- if (is_ptr && same_type_p (TYPE_MAIN_VARIANT (core), void_type_node))
+ if (is_ptr && VOID_TYPE_P (core))
/* OK */;
else if (!complete_type_or_else (core, from))
return 0;