aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
index 3c30307..5084b96 100644
--- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
+++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
@@ -293,7 +293,7 @@ loadSegment32(const MachOObject *Obj,
if (!STE)
return Error("unable to read symbol: '" + Twine(i) + "'");
if (STE->SectionIndex > Segment32LC->NumSections)
- return Error("invalid section index for symbol: '" + Twine() + "'");
+ return Error("invalid section index for symbol: '" + Twine(i) + "'");
// Just skip symbols not defined in this section.
if ((unsigned)STE->SectionIndex - 1 != SectNum)
@@ -372,7 +372,7 @@ loadSegment64(const MachOObject *Obj,
if (!STE)
return Error("unable to read symbol: '" + Twine(i) + "'");
if (STE->SectionIndex > Segment64LC->NumSections)
- return Error("invalid section index for symbol: '" + Twine() + "'");
+ return Error("invalid section index for symbol: '" + Twine(i) + "'");
// Just skip symbols not defined in this section.
if ((unsigned)STE->SectionIndex - 1 != SectNum)