[cfe-dev] missing return in lib/Sema/SemaDeclAttr.cpp???

Douglas Gregor dgregor at apple.com
Mon Aug 30 16:31:37 PDT 2010


On Aug 30, 2010, at 2:38 PM, dawn at burble.org wrote:

> In HandleCallConvAttr(), the case for "AttributeList::AT_thiscall" isn't
> followed by a return, so the case for "AttributeList::AT_cdecl" will be
> executed also.  Is this intentional?

Definitely a bug. Nice catch!

> The code appears to have been added in this rev:
> 
> r104026 | dgregor | 2010-05-18 09:57:00 -0700 (Tue, 18 May 2010) | 2 lines


... and the egg is on my face.

Fixed in Clang r112552.

	- Doug



More information about the cfe-dev mailing list