From: Philip Herron Date: Sat, 17 Sep 2022 09:06:48 +0000 (+0100) Subject: gccrs: remove bad assertion X-Git-Tag: upstream/13.1.0~1679 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0c2ea3ee6e47f4090759ad4cacd43225ceea669;p=platform%2Fupstream%2Fgcc.git gccrs: remove bad assertion gcc/rust/ChangeLog: * backend/rust-tree.cc (rs_type_quals): Comment out bad assertion --- diff --git a/gcc/rust/backend/rust-tree.cc b/gcc/rust/backend/rust-tree.cc index d2ddcfd..47506d6 100644 --- a/gcc/rust/backend/rust-tree.cc +++ b/gcc/rust/backend/rust-tree.cc @@ -974,9 +974,10 @@ rs_type_quals (const_tree type) return TYPE_UNQUALIFIED; quals = TYPE_QUALS (type); /* METHOD and REFERENCE_TYPEs should never have quals. */ - gcc_assert ( - (TREE_CODE (type) != METHOD_TYPE && !TYPE_REF_P (type)) - || ((quals & (TYPE_QUAL_CONST | TYPE_QUAL_VOLATILE)) == TYPE_UNQUALIFIED)); + // gcc_assert ( + // (TREE_CODE (type) != METHOD_TYPE && !TYPE_REF_P (type)) + // || ((quals & (TYPE_QUAL_CONST | TYPE_QUAL_VOLATILE)) == + // TYPE_UNQUALIFIED)); return quals; }