[cfe-commits] r67868 - in /cfe/trunk: include/clang/AST/Attr.h include/clang/Basic/DiagnosticSemaKinds.td lib/CodeGen/CodeGenModule.cpp lib/Sema/SemaDeclAttr.cpp test/Sema/attr-regparm.c

Fariborz Jahanian fjahanian at apple.com
Fri Mar 27 15:38:17 PDT 2009


On Mar 27, 2009, at 3:05 PM, Eli Friedman wrote:

> On Fri, Mar 27, 2009 at 2:58 PM, Fariborz Jahanian <fjahanian at apple.com 
> > wrote:
>> We want to catch this:
>>
>> __attribute__((regparm(1)))void bar(void) {
>>    foo(1, 2);
>> }
>
> And we do catch it even without that check... what issue were you  
> expecting?

I thought we go to the Def function for the above case. If we go to  
the Decl function
as well, then no we won't be needing this.

- fj


>
>
> -Eli




More information about the cfe-commits mailing list