CXString createRef(StringRef String) used to return an invalid string when invoked with some empty strings:
If a StringRef holds a non-nullptr pointer, for instance, pointing into contents of a larger string, and has a zero length, createRef previously returned the entire larger string, ignoring the fact that the actual string passed to it as a param is empty.
This was discovered when invoking c-index-test to dump the contents of documentation comments, in case the comment contains an empty HTML attribute, such as src="".
This test was never properly passing. Because of the bug in string conversion, the printed comments contained the entire source file and not just the comments' text, which was enough to cause // CHECK-s in the test to succeed.