Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit d80c086

Browse files
committed
[MCJIT] Fix a debugging-output formatting bug in RuntimeDyld.
The mismatched mask (7 vs (ColsPerRow-1)) could lead to partial lines being printed out of place. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218061 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 7458ce3 commit d80c086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static void dumpSectionMemory(const SectionEntry &S, StringRef State) {
5050
uint8_t *DataAddr = S.Address;
5151
uint64_t LoadAddr = S.LoadAddress;
5252

53-
unsigned StartPadding = LoadAddr & 7;
53+
unsigned StartPadding = LoadAddr & (ColsPerRow - 1);
5454
unsigned BytesRemaining = S.Size;
5555

5656
if (StartPadding) {

0 commit comments

Comments
 (0)