Skip to content

Commit

Permalink
Don't require location for built-in symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackerpilot committed May 6, 2016
1 parent a7e4539 commit ede71c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dsymbol/symbol.d
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,9 @@ public:

void location(size_t location) pure nothrow @nogc @property
{
assert(location < uint.max);
// If the symbol was declared in a file, assert that it has a location
// in that file. Built-in symbols don't need a location.
assert(symbolFile is null || location < uint.max);
_location = cast(uint) location;
}

Expand Down

0 comments on commit ede71c4

Please sign in to comment.