On Wed, Feb 17, 2016 at 11:14:29AM -0600, Michael Catanzaro wrote:
> El mié, 17-02-2016 a las 17:53 +0100, Jakub Jelinek escribió:
> > That is wrong.  Even older gcc versions would just optimize away the
> > assertion.
> 
> Even in -O0 builds?

Probably not, though the warning will be at -O0 too.

> We've been hesitantly removing ASSERT(this) statements from WebKit to

ASSERT(this) is pointless, it is testing if undefined behavior didn't happen
after the fact, that is just too late.  As I said, use -fsanitize=undefined
to make sure you don't call methods on nullptr.

        Jakub
--
devel mailing list
devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org

Reply via email to