Patchwork Use gcc_checking_assert in as_a

login
register
mail settings
Submitter Richard Guenther
Date March 22, 2013, 12:57 p.m.
Message ID <alpine.LNX.2.00.1303221356060.3543@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/229997/
State New
Headers show

Comments

Richard Guenther - March 22, 2013, 12:57 p.m.
Committed as obvious.

Richard.

2013-03-22  Richard Biener  <rguenther@suse.de>

	* is-a.h (as_a): Use gcc_checking_assert.

Patch

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);
 }