[cfe-commits] r83603 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/Sema.h lib/Sema/SemaOverload.cpp

Fariborz Jahanian fjahanian at apple.com
Fri Oct 9 09:35:50 PDT 2009


On Oct 8, 2009, at 6:34 PM, John McCall wrote:

> Fariborz Jahanian wrote:
>> Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=83603&r1=83602&r2=83603&view=diff
>>
>>
>>
>
> This shouldn't be too hard to make extqual-safe.  Neither the base  
> pointer nor the member pointer can be ObjC-GC-qualified, and TR18037  
> says that the address space of a member is the the address space of  
> the base.  The qualifiers in CV2 are even already incorporated in T,  
> so it really just comes down to:
>
> const Type *C1;
> QualifierCollector Q1;
> if (...) {
>   C1 = Q1.strip(PointerTy->getPointeeType());
>   ...
> }
> ...
>   T = Q1.apply(T);

Applied in http://llvm.org/viewvc/llvm-project?view=rev&revision=83648

- Thanks, Fariborz

>
>
> John.




More information about the cfe-commits mailing list