[cfe-commits] r39954 - in /cfe/trunk: AST/Type.cpp	Sema/SemaExpr.cpp
    Chris Lattner 
    clattner at apple.com
       
    Mon Jul 16 22:19:04 PDT 2007
    
    
  
On Jul 16, 2007, at 10:09 PM, Bill Wendling wrote:
> On Jul 16, 2007, at 9:56 PM, Chris Lattner wrote:
>
>>> -  if (const ReferenceType *ref = dyn_cast<ReferenceType> 
>>> (t.getCanonicalType()))
>>> -    t = promoteExprToType(e, ref->getReferenceeType()); // C++  
>>> [expr]
>>> +  if (const ReferenceType *ref = dyn_cast<ReferenceType>(t)) {
>>
>> This won't work.  You want:
>>
>>     if (const ReferenceType *ref = t->isReferenceType()) {
>>    ...
>>
> Doh! Fixed. Thanks!
No problem, thanks for the patches!
-Chris
    
    
More information about the cfe-commits
mailing list