summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2014-09-18 16:43:24 +0000
committerLang Hames <lhames@gmail.com>2014-09-18 16:43:24 +0000
commit8d4d0260a19828c66e0a8238ed4e8e4bfbc25ac6 (patch)
treeb3daeed8a63261435230af66e782ba4889da284b /llvm/lib/ExecutionEngine/RuntimeDyld
parent0baab0cded04a00adefac8fd5730364f331e2c23 (diff)
downloadbcm5719-llvm-8d4d0260a19828c66e0a8238ed4e8e4bfbc25ac6.tar.gz
bcm5719-llvm-8d4d0260a19828c66e0a8238ed4e8e4bfbc25ac6.zip
[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. llvm-svn: 218061
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
index fd276e606da..fafd395bb4a 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
@@ -50,7 +50,7 @@ static void dumpSectionMemory(const SectionEntry &S, StringRef State) {
uint8_t *DataAddr = S.Address;
uint64_t LoadAddr = S.LoadAddress;
- unsigned StartPadding = LoadAddr & 7;
+ unsigned StartPadding = LoadAddr & (ColsPerRow - 1);
unsigned BytesRemaining = S.Size;
if (StartPadding) {
OpenPOWER on IntegriCloud