<div dir="ltr"><div><div>For reference, I think I fixed the problem in r284746.<br><br></div>I had code like this:<br>StringRef VTName = getReciprocalOpName(IsSqrt, VT); // this returns std::string<br><br></div>So the std::string that is returned could be deleted leaving the StringRef dangling. The fix was to assign to a std::string instead.<br><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 18, 2016 at 4:40 PM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 18 October 2016 at 15:13, Sanjay Patel <<a href="mailto:spatel@rotateright.com">spatel@rotateright.com</a>> wrote:<br>
> Is a solution to return a std::string rather than a StringRef because the<br>
> string will then be an actual copy rather than a reference?<br>
<br>
</span>Oh, actually it looks like I was mistaken. I didn't see that<br>
getValueAsString and getAsString were different when I looked at the<br>
docs.<br>
<br>
I can't see anything else obviously wrong either. I'll try to take a<br>
better look in a bit, but I've got 3 independent bot failures on my<br>
hands now and no real clue about any of them so it may take a while.<br>
<br>
Sorry.<br>
<span class="HOEnZb"><font color="#888888"><br>
Tim.<br>
</font></span></blockquote></div><br></div>