Fix unittest for buildbot with mips host (32bit big endian) from r295174

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295188 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Bozier 2017-02-15 16:03:22 +00:00
parent 0279eb85ba
commit 6d61f07749

View File

@ -26,15 +26,13 @@ TEST(Object, DataRefImplOstream) {
char const *Expected;
if (llvm::sys::IsLittleEndianHost) {
Expected = sizeof Data.p == sizeof(uint64_t)
if (sizeof Data.p == sizeof(uint64_t)) {
Expected = llvm::sys::IsLittleEndianHost
? "(0xffffeeee0000 (0xeeee0000, 0x0000ffff))"
: "(0xeeee0000 (0xeeee0000, 0x0000ffff))";
: "(0xeeee00000000ffff (0xeeee0000, 0x0000ffff))";
}
else {
Expected = sizeof Data.p == sizeof(uint64_t)
? "(0xeeee00000000ffff (0xeeee0000, 0x0000ffff))"
: "(0x0000ffff (0xeeee0000, 0x0000ffff))";
Expected = "(0xeeee0000 (0xeeee0000, 0x0000ffff))";
}
OS << Data;