[cfe-commits] r140232 - /cfe/trunk/lib/Sema/SemaExpr.cpp

Tobias Grosser tobias at grosser.es
Wed Sep 21 07:16:55 PDT 2011


On 09/21/2011 03:11 PM, Douglas Gregor wrote:
>
> On Sep 20, 2011, at 7:50 PM, Richard Trieu wrote:
[...]
>> --- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
>> +++ cfe/trunk/lib/Sema/SemaExpr.cpp Tue Sep 20 21:50:14 2011
>> @@ -8936,7 +8936,7 @@
>>    else if (pw == Context.getTargetInfo().getLongLongWidth())
>>      Ty = Context.LongLongTy;
>>    else {
>> -    assert(!"I don't know size of pointer!");
>> +    assert(0&&  "I don't know size of pointer!");
>>      Ty = Context.IntTy;
>
> Just use llvm_unreachable?

Also, the 'Ty = Context.IntTy' seems to be dead code.

Tobi



More information about the cfe-commits mailing list