diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp index 65110752e6c..b4f14d3dada 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp @@ -45,6 +45,11 @@ void RuntimeDyldImpl::deregisterEHFrames() {} static void dumpSectionMemory(const SectionEntry &S, StringRef State) { dbgs() << "----- Contents of section " << S.Name << " " << State << " -----"; + if (S.Address == nullptr) { + dbgs() << "\n
\n"; + return; + } + const unsigned ColsPerRow = 16; uint8_t *DataAddr = S.Address;