Use gcc_checking_assert in as_a

Submitted by Richard Guenther on March 22, 2013, 12:57 p.m.

Details

Message ID alpine.LNX.2.00.1303221356060.3543@zhemvz.fhfr.qr
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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