[compiler-rt] r189783 - fix PR17061 (and pleeease, don't ask me for a test, this is just a minor output formatting issue :)
Kostya Serebryany
kcc at google.com
Tue Sep 3 02:44:56 PDT 2013
Author: kcc
Date: Tue Sep 3 04:44:56 2013
New Revision: 189783
URL: http://llvm.org/viewvc/llvm-project?rev=189783&view=rev
Log:
fix PR17061 (and pleeease, don't ask me for a test, this is just a minor output formatting issue :)
Modified:
compiler-rt/trunk/lib/asan/asan_report.cc
Modified: compiler-rt/trunk/lib/asan/asan_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_report.cc?rev=189783&r1=189782&r2=189783&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_report.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_report.cc Tue Sep 3 04:44:56 2013
@@ -118,7 +118,7 @@ static void PrintShadowBytes(const char
for (uptr i = 0; i < n; i++) {
u8 *p = bytes + i;
const char *before = p == guilty ? "[" :
- p - 1 == guilty ? "" : " ";
+ (p - 1 == guilty && i != 0) ? "" : " ";
const char *after = p == guilty ? "]" : "";
PrintShadowByte(before, *p, after);
}
More information about the llvm-commits
mailing list