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

Peter Davies ultratwo at gmail.com
Tue Aug 17 11:38:57 PDT 2010


>> So why does StringRef(NULL) segfault?
>
> IIRC, because it calls strlen(NULL).

To better phrase the question, why doesn't it check and return
StringRef() in that case?

Peter



More information about the cfe-dev mailing list