[cfe-commits] r39954 - in /cfe/trunk: AST/Type.cpp Sema/SemaExpr.cpp

Bill Wendling isanbard at gmail.com
Mon Jul 16 22:09:48 PDT 2007


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!

-bw






More information about the cfe-commits mailing list