Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
[trivial] Make rt.minfo import in object_.d function-local.
Browse files Browse the repository at this point in the history
The 2.065 frontend trips over this when building the druntime
tests in shared library mode with LDC (forward reference to the
Object base class of TypeInfo when accessing the latter from
within rt.util.container). No idea why this happens, or why it
doesn't with DMD, but this fixes it and it also is a small
improvement on its own regardless.
  • Loading branch information
dnadlinger committed Jul 2, 2014
1 parent c661eea commit fe2bea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object_.d
Expand Up @@ -27,7 +27,6 @@ private
import core.memory;
import rt.util.hash;
import rt.util.string;
import rt.minfo;
debug(PRINTF) import core.stdc.stdio;

extern (C) void onOutOfMemoryError(void* pretend_sideffect = null) @trusted pure nothrow; /* dmd @@@BUG11461@@@ */
Expand Down Expand Up @@ -1729,6 +1728,7 @@ const:

static int opApply(scope ApplyDg dg)
{
import rt.minfo;
return rt.minfo.moduleinfos_apply(dg);
}
}
Expand Down

0 comments on commit fe2bea4

Please sign in to comment.