This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Use gcc_checking_assert in as_a
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 22 Mar 2013 13:57:07 +0100 (CET)
- Subject: [PATCH] Use gcc_checking_assert in as_a
Committed as obvious.
Richard.
2013-03-22 Richard Biener <rguenther@suse.de>
* is-a.h (as_a): Use gcc_checking_assert.
Index: gcc/is-a.h
===================================================================
--- gcc/is-a.h (revision 196955)
+++ gcc/is-a.h (working copy)
@@ -181,7 +181,7 @@ template <typename T, typename U>
inline T *
as_a (U *p)
{
- gcc_assert (is_a <T> (p));
+ gcc_checking_assert (is_a <T> (p));
return is_a_helper <T>::cast (p);
}