mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 17:43:35 +03:00
Fix assertions-enabled build.
needsCodegen was moved to TemplateInstance in 2.066.1.
This commit is contained in:
parent
28f4bce28c
commit
73735dd98c
1 changed files with 2 additions and 4 deletions
|
@ -973,10 +973,8 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
||||||
if (fd->semanticRun != PASSsemantic3done || fd->ident == Id::empty)
|
if (fd->semanticRun != PASSsemantic3done || fd->ident == Id::empty)
|
||||||
{
|
{
|
||||||
// We cannot ever generate code for this function. DMD would just filter
|
// We cannot ever generate code for this function. DMD would just filter
|
||||||
// it out by checking needsCodegen(), but we want to emit functions even
|
// it out, but we want to emit functions even if we do not need to as
|
||||||
// if we do not need as available_exernally for inlining purposes.
|
// available_exernally for inlining purposes.
|
||||||
assert(!fd->needsCodegen());
|
|
||||||
|
|
||||||
IF_LOG Logger::println("No code generation for incomplete function '%s'",
|
IF_LOG Logger::println("No code generation for incomplete function '%s'",
|
||||||
fd->toPrettyChars());
|
fd->toPrettyChars());
|
||||||
fd->ir.setDefined();
|
fd->ir.setDefined();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue