Il 29/09/2012 17:16, Abramo Bagnara ha scritto:
> Il 26/09/2012 04:36, Eli Friedman ha scritto:
>> Modified: cfe/trunk/lib/AST/TemplateBase.cpp
>> URL: 
>> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/TemplateBase.cpp?rev=164656&r1=164655&r2=164656&view=diff
>> ==============================================================================
>> --- cfe/trunk/lib/AST/TemplateBase.cpp (original)
>> +++ cfe/trunk/lib/AST/TemplateBase.cpp Tue Sep 25 21:36:12 2012
> ...
>> @@ -348,18 +354,20 @@
>>    }
>>      
>>    case Declaration: {
>> -    if (NamedDecl *ND = dyn_cast_or_null<NamedDecl>(getAsDecl())) {
>> -      if (ND->getDeclName()) {
>> -        Out << *ND;
>> -      } else {
>> -        Out << "<anonymous>";
>> -      }
>> +    NamedDecl *ND = cast<NamedDecl>(getAsDecl());
>> +    if (ND->getDeclName()) {
>> +      // FIXME: distinguish between pointer and reference args?
>> +      Out << *ND;
>>      } else {
>> -      Out << "nullptr";
>> +      Out << "<anonymous>";
>>      }
>>      break;
>>    }
>> -    
>> +
>> +  case NullPtr: {
>> +    Out << "nullptr";
>> +  }
>> +
> 
> You've forgotten the break, don't you?
> 

No answer, so I've fixed it myself in r165298.

-- 
Abramo Bagnara

BUGSENG srl - http://bugseng.com
mailto:[email protected]
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to