diff --git a/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp b/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp index 03a8b98dff18..34bda09f1cac 100644 --- a/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp +++ b/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp @@ -299,8 +299,9 @@ Error MachOLinkGraphBuilder::createNormalizedSymbols() { return NSec.takeError(); if (Value < NSec->Address || Value > NSec->Address + NSec->Size) - return make_error("Symbol address does not fall within " - "section"); + return make_error("Address " + formatv("{0:x}", Value) + + " for symbol " + *Name + + " does not fall within section"); if (!NSec->GraphSection) { LLVM_DEBUG({