[cfe-dev] What is the StringRef equivalent of NULL?

Eli Friedman eli.friedman at gmail.com
Tue Aug 17 11:29:30 PDT 2010


On Tue, Aug 17, 2010 at 11:19 AM, Peter Davies <ultratwo at gmail.com> wrote:
>>> What is the StringRef equivalent of NULL?
>>
>> StringRef()
>>
>> -Chris
>>
>
> So why does StringRef(NULL) segfault?

IIRC, because it calls strlen(NULL).

-Eli



More information about the cfe-dev mailing list