mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 01:23:14 +01:00
Make sure instantiations of template intrinsics are marked as intrinsics.
This commit is contained in:
@@ -3186,6 +3186,14 @@ void TemplateInstance::semantic(Scope *sc)
|
||||
{
|
||||
//printf("setting aliasdecl\n");
|
||||
aliasdecl = new AliasDeclaration(loc, s->ident, s);
|
||||
|
||||
// LDC propagate internal information
|
||||
if (tempdecl->llvmInternal) {
|
||||
s->llvmInternal = tempdecl->llvmInternal;
|
||||
if (FuncDeclaration* fd = s->isFuncDeclaration()) {
|
||||
fd->intrinsicName = tempdecl->intrinsicName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user