<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 14, 2016 at 3:55 PM Zachary Turner via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">zturner added a comment.<br class="gmail_msg">
<br class="gmail_msg">
Probably should take this discussion to a thread specifically about `StringRefZ`, but fwiw I think that would complicate the logic of `StringRef` considerably while also introducing thread synchronization issues and potentially increasing the size of a `StringRef`. It's possible seeing the actual implementation would change my mind, but so far it doesn't sound like a good candidate for `StringRef`.<br class="gmail_msg">
<br class="gmail_msg">
Back to this patch, anyone have any other thoughts? FWIW I changed my usage so I'm now storing a `StringRef` instead of a `StringLiteral` (because it actually needed to be constructed without a literal in some scenarios), but the API still seems to make sense here to me (and the attribute seems like a good addition regardless)<br class="gmail_msg"></blockquote><div><br></div><div>If you've changed your use case to use StringRef now - do you have a use/need for this feature now?<br><br>Otherwise I'd probably wait until there's a use case to discuss it in context, etc. (the patch seems small enough that it's not like we're losing a lot of technical work to create it again next time we come up with a case that might benefit)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="gmail_msg">
<br class="gmail_msg">
<a href="https://reviews.llvm.org/D27721" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D27721</a><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div></div>