[PATCH] D24904: Allow StringRef to be constructed with a null pointer

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 26 09:34:08 PDT 2016


zturner added a comment.

The 0 is for the length, not the actual pointer.  The pointer is just initialized with whatever you give to the constructor.


https://reviews.llvm.org/D24904





More information about the llvm-commits mailing list