Commit 38230e2d authored by rwbarton's avatar rwbarton Committed by Ben Gamari
Browse files

Fix runtime linker error message when old symbol had no owner

Test Plan: Actually run validate. This fixes test linker_error3.

Reviewers: austin, erikd, bgamari

Reviewed By: erikd, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1874

(cherry picked from commit 73293109)
parent 02f3c8fd
...@@ -439,6 +439,7 @@ static int ghciInsertSymbolTable( ...@@ -439,6 +439,7 @@ static int ghciInsertSymbolTable(
" loaded twice.\n", " loaded twice.\n",
(char*)key, (char*)key,
obj_name, obj_name,
pinfo->owner == NULL ? "(GHCi built-in symbols)" :
pinfo->owner->archiveMemberName ? pinfo->owner->archiveMemberName pinfo->owner->archiveMemberName ? pinfo->owner->archiveMemberName
: pinfo->owner->fileName : pinfo->owner->fileName
); );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment