<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 3, 2013 at 9:48 PM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><p dir="ltr"><br>
On Sep 3, 2013 2:49 AM, "Kostya Serebryany" <<a href="mailto:kcc@google.com" target="_blank">kcc@google.com</a>> wrote:<br>
><br>
> Author: kcc<br>
> Date: Tue Sep  3 04:44:56 2013<br>
> New Revision: 189783<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=189783&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=189783&view=rev</a><br>
> Log:<br>
> fix PR17061 (and pleeease, don't ask me for a test, this is just a minor output formatting issue :)</p>
</div><p dir="ltr">A test case is more than just about how trivial the change is - its also an indication of how well, or poorly, tested this functionality is in the general area.</p>
<p dir="ltr">Is there any reason this would be hard to test?</p></blockquote><div>No. It's just too unimportant :) </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr"> Or why the change in behavior didn't cause existing tests to fail? (Were they just well-written file check tests? In which case they could be widened a little)</p><div class="HOEnZb"><div class="h5">

<p dir="ltr">><br>
> Modified:<br>
>     compiler-rt/trunk/lib/asan/asan_report.cc<br>
><br>
> Modified: compiler-rt/trunk/lib/asan/asan_report.cc<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_report.cc?rev=189783&r1=189782&r2=189783&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_report.cc?rev=189783&r1=189782&r2=189783&view=diff</a><br>


> ==============================================================================<br>
> --- compiler-rt/trunk/lib/asan/asan_report.cc (original)<br>
> +++ compiler-rt/trunk/lib/asan/asan_report.cc Tue Sep  3 04:44:56 2013<br>
> @@ -118,7 +118,7 @@ static void PrintShadowBytes(const char<br>
>    for (uptr i = 0; i < n; i++) {<br>
>      u8 *p = bytes + i;<br>
>      const char *before = p == guilty ? "[" :<br>
> -        p - 1 == guilty ? "" : " ";<br>
> +        (p - 1 == guilty && i != 0) ? "" : " ";<br>
>      const char *after = p == guilty ? "]" : "";<br>
>      PrintShadowByte(before, *p, after);<br>
>    }<br>
><br>
><br>
> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</p>
</div></div></blockquote></div><br></div></div>