Skip to content

Commit

Permalink
merge D2 pull 103
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jun 11, 2011
1 parent 6d7e775 commit e406580
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/dsymbol.c
@@ -1,6 +1,6 @@

// Compiler implementation of the D programming language
// Copyright (c) 1999-2010 by Digital Mars
// Copyright (c) 1999-2011 by Digital Mars
// All Rights Reserved
// written by Walter Bright
// http://www.digitalmars.com
Expand Down Expand Up @@ -199,10 +199,13 @@ char *Dsymbol::locToChars()
OutBuffer buf;
char *p;

Module *m = getModule();
if (!loc.filename) // avoid bug 5861.
{
Module *m = getModule();

if (m && m->srcfile)
loc.filename = m->srcfile->toChars();
if (m && m->srcfile)
loc.filename = m->srcfile->toChars();
}
return loc.toChars();
}

Expand Down

0 comments on commit e406580

Please sign in to comment.