summaryrefslogtreecommitdiff
path: root/lib/msan/msan_report.cc
diff options
context:
space:
mode:
authorMohit K. Bhakkad <mohit.bhakkad@gmail.com>2016-02-26 06:44:10 +0000
committerMohit K. Bhakkad <mohit.bhakkad@gmail.com>2016-02-26 06:44:10 +0000
commitb18414ab1d5c453fa810dd1572cdc80e46589ef8 (patch)
treeea97fe0e949a8234bbbdd2f2409681ecaf225c20 /lib/msan/msan_report.cc
parent6dfeef05e82f0b683be21d8ae49e92881efcad2f (diff)
[MSan] Endianness should not matter while printing a byte
Reviewers: eugenis Subscribers: jaydeep, sagar, llvm-commits Differential Revision: http://reviews.llvm.org/D17264 Differential Revision: http://reviews.llvm.org/D17563 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan_report.cc')
-rw-r--r--lib/msan/msan_report.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/msan/msan_report.cc b/lib/msan/msan_report.cc
index ddb807028..9a35c9c13 100644
--- a/lib/msan/msan_report.cc
+++ b/lib/msan/msan_report.cc
@@ -221,11 +221,7 @@ void DescribeMemoryRange(const void *x, uptr size) {
} else {
unsigned char v = *(unsigned char *)s;
if (v) last_quad_poisoned = true;
-#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
- Printf("%x%x", v & 0xf, v >> 4);
-#else
Printf("%x%x", v >> 4, v & 0xf);
-#endif
}
// Group end.
if (pos % 4 == 3 && with_origins) {