Skip to content

Commit

Permalink
Fix unittest for buildbot with mips host (32bit big endian) from r295174
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295188 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
bigboze committed Feb 15, 2017
1 parent 0279eb8 commit 6d61f07
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions unittests/Object/SymbolicFileTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6d61f07

Please sign in to comment.