aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-02-03 08:48:19 -0800
committerIan Lance Taylor <iant@golang.org>2021-02-03 08:48:19 -0800
commit305e9d2c7815e90a29bbde1e3a7cd776861f4d7c (patch)
tree32dedad81f42b67729aef302069fcee11132d215 /gcc/cp/tree.c
parent8910f1cd79445bbe2da01f8ccf7c37909349529e (diff)
parent530203d6e3244c25eda4124f0fa5756ca9a5683e (diff)
downloadgcc-305e9d2c7815e90a29bbde1e3a7cd776861f4d7c.zip
gcc-305e9d2c7815e90a29bbde1e3a7cd776861f4d7c.tar.gz
gcc-305e9d2c7815e90a29bbde1e3a7cd776861f4d7c.tar.bz2
Merge from trunk revision 530203d6e3244c25eda4124f0fa5756ca9a5683e.
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index 2e5a1f1..e6ced27 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -2738,8 +2738,7 @@ fixup_deferred_exception_variants (tree type, tree raises)
tree original = TYPE_RAISES_EXCEPTIONS (type);
tree cr = flag_noexcept_type ? canonical_eh_spec (raises) : NULL_TREE;
- gcc_checking_assert (TREE_CODE (TREE_PURPOSE (original))
- == DEFERRED_PARSE);
+ gcc_checking_assert (UNPARSED_NOEXCEPT_SPEC_P (original));
/* Though sucky, this walk will process the canonical variants
first. */