mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-01 18:13:18 +01:00
Prefer more specific functions to DtoResolveDsymbol.
The remaining ones should also be easy to remove with a closer look at the situation. Ideally, we would get rid of all of them at some point and use safe wrapper functions for accessing the IrDsymbol associated with a given declaration (which would emit the declarations on the fly if not already present).
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "aggregate.h"
|
||||
#include "mtype.h"
|
||||
#include "gen/arrays.h"
|
||||
#include "gen/functions.h"
|
||||
#include "gen/irstate.h"
|
||||
#include "gen/linkage.h"
|
||||
#include "gen/llvm.h"
|
||||
@@ -135,7 +136,7 @@ void RTTIBuilder::push_funcptr(FuncDeclaration* fd, Type* castto)
|
||||
{
|
||||
if (fd)
|
||||
{
|
||||
DtoResolveDsymbol(fd);
|
||||
DtoResolveFunction(fd);
|
||||
LLConstant* F = fd->ir.irFunc->func;
|
||||
if (castto)
|
||||
F = DtoBitCast(F, DtoType(castto));
|
||||
|
||||
Reference in New Issue
Block a user